Jump across a platform

kimono

Well-known member
Hello everyone,
My question may seem simple:
how can you place yourself under a platform, jump and land on it?
Nohithead 1 doesn't seem to be enough, I guess we need to get a script?
Thank you for your help ;)
 
Solution
Hello everyone,
My question may seem simple:
how can you place yourself under a platform, jump and land on it?
Nohithead 1 doesn't seem to be enough, I guess we need to get a script?
Thank you for your help ;)
I tested it in my Super Mario template and was able to replicate this effect by just erasing the "height" value in the character header.
Optionally it can be done in the character's update/think/ondraw scripts using the checkplatform() commands and then changing the subject_to_platform property depending on the current position related to the platform.
Hello everyone,
My question may seem simple:
how can you place yourself under a platform, jump and land on it?
Nohithead 1 doesn't seem to be enough, I guess we need to get a script?
Thank you for your help ;)
I tested it in my Super Mario template and was able to replicate this effect by just erasing the "height" value in the character header.
Optionally it can be done in the character's update/think/ondraw scripts using the checkplatform() commands and then changing the subject_to_platform property depending on the current position related to the platform.
 
Solution
Thanks Kratus, it works perfectly and problem solved :)
Is it possible to create a simple function that then allows you to go back down from the platform by pressing Down and the jump key?
 
Is it possible to create a simple function that then allows you to go back down from the platform by pressing Down and the jump key?
Yes, you can either make a freespecial or a SLIDE anim and turn off the subject_to_platform for the first frame and turn it on again on the next one like this:

anim freespecial16 #platform
loop 0
delay 5
landframe 3
@script
void self = getlocalvar("self");
if(frame ==0)changeentityproperty(self,"subject_to_platform",0);
if(frame >=1)changeentityproperty(self,"subject_to_platform",1);
@end_script
frame ...
frame...
 
Back
Top Bottom