Custom Platform Behavior

For questions about using Classic.

Post » Fri Aug 28, 2009 6:58 am

Well first thing I want to know is there really any reason to recreate platform behavior? the way I see it, its excellent starting point, you can always expand upon it with new custom controls.

Second is what are possible ways to accomplish this? I tried doing it with just events and it nearly drew me insane.

I was stuck right at the gravity, no matter what I did there was random chance player would move couple of pixels into ground :| Is it even possible to do it with just events?

I know some ppl were doing this with Physics behavior, But I have not used it much.
What are the Dis/advantages of physics based platform behavior?

:|
B
24
S
7
G
3
Posts: 138
Reputation: 2,795

Post » Fri Aug 28, 2009 7:18 am

I really don't think there's a need to make custom platform movements anymore. But, if you do want to make your own, there's a fairly simple way to solve the issue where you get stuck a few pixels below the ground. Something like:

[code:19dbdkoc]
+While
+Object overlaps ground
-Set Object Y to Object Y - 1
[/code:19dbdkoc]
The while in the event will push the object up 1 pixel until said object is no longer overlapping with the ground.
Moderator
B
98
S
36
G
19
Posts: 1,584
Reputation: 17,717


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests