EDIT: For some reason I'm not allowed to post links in posts. Hopefully that goes away soon. I'm unfamiliar with dropbox, but it seems like I just need to input email addresses to share the .capx file.
Hey folks, this might be a nooby question since I'm really new to Construct 2, but I'm encountering a bit of a problem in my game design. I've taken a look at the FAQ threads and a few others, but didn't quite find what I was looking for.
So, here's a few screenshots of my game to give you a better understanding of what I'm talking about;
[No pictures allowed? Uh, okay. Just copy and paste links, I guess.]
In my game, the player (the stick figure holding the dustpan taped to a broom) can use the jump feature of the platform behavior to strike the "Enter Name Box" with the dustpan. Both the dustpan and the "Enter Name Box" are physics objects. As you can see from the pictures, this allows the player to shove the Name Box along in an upwards or side-to-side motion (World Gravity is set to zero to keep the box in the air).
Now, turn your attention to that odd yellow rectangle inside the Name Box. This is the thing that's giving me trouble. What I'd like to have happen is make it to where the yellow rectangle is "trapped" inside the Name Box, but realistically moves around the box (only with no friction)once the Name Box is manipulated by the player. Think of the yellow rectangle as a bar of soap in a large cardboard box. In the second picture I've posted, I'd want the yellow rectangle to behave by falling on to it's right side and sliding down the bottom of the Name Box until it reaches the side edge. Does that make sense?
I've tried several uses of the physics behavior, but I'm having no luck so far accomplishing my goal. I tried adding the physics behavior to the yellow rectangle and increasing the gravity, but by doing that I cause the box to fall from above. Perhaps there's another way to keep the box in the air while granting gravity to the yellow rectangle?
Any and all help would be much appreciated. I'll upload a capx once I figure out how.