How do I Adjust PlayerBox for "Ducking" Animations?

Just started using Construct 2? Post your questions here

Post » Tue Jan 05, 2016 1:42 pm

I'm using the PlayerBox method for collision detection--an invisible box that surrounds my sprite's body that takes all the hits and moves the Sprite around the screen. I find it very useful, except in the case of ducking. My Sprite becomes half its original height, but the PlayerBox is still sticking out of its back at the original height, which of course makes ducking useless when trying to dodge something.
Are there any tricks to get the PlayerBox to change dimensions for certain animations? The box itself is not animated.
Please be as specific as possible :-) I'm new to all this!
B
7
Posts: 51
Reputation: 379

Post » Tue Jan 05, 2016 3:30 pm

Try using "Set Height" when Crouched on the PlayerBox.
I like giving game advice more than I actually like making games ;)

Image
B
40
S
15
G
3
Posts: 129
Reputation: 4,651

Post » Tue Jan 05, 2016 7:57 pm

Set Height would work, or you could give your invisible box a second frame the size you'd like it to be. Then you can just toggle between the frames for crouching/not crouching.
B
99
S
35
G
16
Posts: 942
Reputation: 16,084

Post » Fri Jan 08, 2016 3:16 am

Got it! Thx
B
7
Posts: 51
Reputation: 379


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests