sonic game moving platform

Non-platform specific questions.

sonic game moving platform

Postby tlah » Fri Aug 22, 2008 11:58 pm

In the original sonic the hedgehog games, there was a platform that you jumped on and it was moving from left to right. I got it to move, but when sonic stands on it, he doesn't move with it. how can i get him to move along with it? :?:
User avatar
tlah
 
Posts: 66
Joined: Sun Apr 06, 2008 12:10 pm
Location: In your head, readin' ur mind
Score: 2 Give a positive score

Re: sonic game moving platform

Postby makslane » Sat Aug 23, 2008 1:07 am

Try this:

When the player collides with the platform, make the platform his parent.
On collision finish, remove the parent.
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: sonic game moving platform

Postby tlah » Sat Aug 23, 2008 2:36 pm

It works, but when sonic is on it, he moves slower the platform, so if he is just standing there, he falls off. Help! :? :(
User avatar
tlah
 
Posts: 66
Joined: Sun Apr 06, 2008 12:10 pm
Location: In your head, readin' ur mind
Score: 2 Give a positive score

Re: sonic game moving platform

Postby Kalladdolf » Sat Aug 23, 2008 2:44 pm

could you upload the .ged file + data please?

(if possible)
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: sonic game moving platform

Postby Thanx » Sat Aug 23, 2008 4:02 pm

Add to the collision event, instead of parenting, add a script editor code:
sonic.xvelocity = platform.xvelocity;

Instead of "sonic" in the code, use the name of the actor that represents sonic, instead of "platform" use the name of the actor that has the moving platform.
If your moving is x = x + 5; though, then you'll have to change it to xvelocity = 5; and make a Key up event for those keys that you use for controling, and say: xvelocity = 0;

This requires a little more work, but it should work that way for sure.
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score

Re: sonic game moving platform

Postby tlah » Sat Aug 23, 2008 6:20 pm

thanx, thanx. (I crack myself up :lol: ) Ill let u know if I need further help
User avatar
tlah
 
Posts: 66
Joined: Sun Apr 06, 2008 12:10 pm
Location: In your head, readin' ur mind
Score: 2 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron