I dont want my character to fly

For questions about using Classic.

Post » Sun May 31, 2009 7:09 pm

Hi there,

This is my 1st post on the forum.

Well done for making such a great program.

I have an issue though and am hoping someone can help me solve it.
I have created a game where the character moves when the player clicks on a certain icon. I want it like this for a reason which will become clear when I post my project in progress in about a week or so.

I am having a problem with jumping though.... If you click on the jump icon fast enough multiple times, you can make the character fly, which is not what I want.

Any Ideas?

Thanks,

Moonshine
B
1
G
3
Posts: 2
Reputation: 829

Post » Sun May 31, 2009 7:15 pm

Limit the amount it can be clicked? You could use the Timer Behavior or time conditions for this.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Sun May 31, 2009 7:17 pm

Are you using Platform behavior? If so, add "Is on ground" to your jump event.

Like so:

[code:2df6wlcg]
+ "Jump" Button is clicked
+ Player: Platform: Is on ground
-> Jump
[/code:2df6wlcg]

If you're not using Platform behavior then do it like so:

[code:2df6wlcg]
+ "Jump" Button is clicked
+ Player is Overlapping Ground at Offset (0, 1)
-> Jump
[/code:2df6wlcg]
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sun May 31, 2009 7:18 pm

Are you using the platform behavior?

edit:
Arrrgh
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Sun May 31, 2009 8:08 pm

[quote="deadeye":149hef28]Are you using Platform behavior? If so, add "Is on ground" to your jump event.

Like so:

[code:149hef28]
+ "Jump" Button is clicked
+ Player: Platform: Is on ground
-> Jump
[/code:149hef28]

If you're not using Platform behavior then do it like so:

[code:149hef28]
+ "Jump" Button is clicked
+ Player is Overlapping Ground at Offset (0, 1)
-> Jump
[/code:149hef28][/quote:149hef28]

I used the top option and it now works perfectly.

Thanks for the quick reply, people.

Moonshine
B
1
G
3
Posts: 2
Reputation: 829


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest