Vertical Shake ? [Say from Epic Jump]

Discussion and feedback on Construct 2

Post » Tue Apr 14, 2015 5:46 am

Is there a vertical shake feature ?
The Shake in Scroll To Behavior is Horizontal and Vertical.
B
11
S
3
Posts: 283
Reputation: 1,659

Post » Tue Apr 14, 2015 10:15 pm

Say you wanted the player to always be in the centre of the screen. Instead of giving the player the ScrollTo behaviour, I would give the behaviour to a separate object called Camera with an instance variable called something like 'ShakeY'. Every tick, set Camera position to Player.X,Player.Y+Camera.ShakeY. When you want to shake vertically, some how or other set the value of ShakeY to something random and crazy a few times then reset it back to 0. Easy!
B
8
S
1
Posts: 54
Reputation: 824

Post » Wed Apr 15, 2015 1:46 am

Thanks :D
B
11
S
3
Posts: 283
Reputation: 1,659


Return to Construct 2 General

Who is online

Users browsing this forum: jobel and 6 guests