Using an if statement for platform settings?

Get help using Construct 2

Post » Tue Feb 11, 2014 1:06 pm

Hi guys,

I'm stumped. I want to increase the gravity for my player by 90 every 30 seconds, easy done. However I want to put this in an if statement so I can set an upper limit for gravity, otherwise it just gets ridiculous. Yet the only event platform options seem to be compare speed, and several is ones like falling, jumping etc.

Any thoughts?

Thanks!
B
5
S
1
Posts: 44
Reputation: 465

Post » Tue Feb 11, 2014 1:13 pm

System compare two values : player.platform.gravity < yourlimit
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Feb 11, 2014 2:07 pm

Thanks for that! Works perfectly, I was looking for it by the sprite it was attached to.
B
5
S
1
Posts: 44
Reputation: 465


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests