Jump to content


Photo

Moving Platforms


  • Please log in to reply
13 replies to this topic

#1 XFire

XFire

    GMC Member

  • New Member
  • 6 posts

Posted 13 April 2007 - 10:45 AM

How would I make moving platforms on a platformer? I'm using 6.1 Unregistered.

Thanks.
  • 0

#2 Gnome

Gnome

    GMC Member

  • New Member
  • 201 posts

Posted 13 April 2007 - 11:01 AM

check this http://www.gamemaker.nl/tutorial.html and pick platform is it u want it to scroll horizontal if so go room settings horizontal speed=2 or higher or lower do it to suit urself
  • 0

#3 XFire

XFire

    GMC Member

  • New Member
  • 6 posts

Posted 13 April 2007 - 11:15 AM

I'm sorry Gnome, but that's doesn't exactly help...
  • 0

#4 bluemagica

bluemagica

    Grand Wizard

  • New Member
  • 3243 posts

Posted 13 April 2007 - 12:09 PM

make the moing platformer as a separate object and then just give it speed.....
  • 0

#5 sh@de

sh@de

    GMC Member

  • New Member
  • 413 posts

Posted 13 April 2007 - 12:24 PM

the easiest way to do it is make a platform object then in the create event say start moving in a direction at a speed of... whatever, then collision with a wall makes it start moving in the opposite direction at the same speed.
  • 0

#6 XFire

XFire

    GMC Member

  • New Member
  • 6 posts

Posted 13 April 2007 - 02:34 PM

That's better, but whenever my character jumps on the platform, it stops. When I jump off of it again, it starts moving again. Any help?
  • 0

#7 Vizierde

Vizierde

    GMC Member

  • New Member
  • 96 posts

Posted 13 April 2007 - 02:46 PM


Edited by Vizierde, 14 January 2009 - 08:28 PM.

  • 0

#8 Zccc

Zccc

    GMC Member

  • New Member
  • 392 posts

Posted 13 April 2007 - 02:48 PM

I have the same problem...
Sorry for making a same topic ^_^
  • 0

#9 XFire

XFire

    GMC Member

  • New Member
  • 6 posts

Posted 13 April 2007 - 02:49 PM

I think the thing is that the platform has no coding apart from the movement coding, and it's parent is the normal block object. I'm using the same coding as in the tutorial on the site.
  • 0

#10 xclonedx

xclonedx

    GMC Member

  • New Member
  • 175 posts

Posted 13 April 2007 - 02:50 PM

If it stops when you jump on it, delete the portion in thecollision event where you are telling it to stop. Pull apart the example on the tuts page and youll get it no problem.
  • 0

#11 XFire

XFire

    GMC Member

  • New Member
  • 6 posts

Posted 13 April 2007 - 02:54 PM

I'm not telling it to stop. There is no collision event with the player and the moving platform. I don't think I need one, as I can just stick the simple block object as the moving platform's parent. Is that my problem?
  • 0

#12 Vizierde

Vizierde

    GMC Member

  • New Member
  • 96 posts

Posted 13 April 2007 - 02:55 PM


Edited by Vizierde, 14 January 2009 - 08:29 PM.

  • 0

#13 XFire

XFire

    GMC Member

  • New Member
  • 6 posts

Posted 13 April 2007 - 03:13 PM

Okay, I've done what Vizierde said, but whenever I jump off or the platform or it moves in a different direction, I keep going. Any way to stop this?
  • 0

#14 New2Gamemaker

New2Gamemaker

    GMC Member

  • New Member
  • 15 posts

Posted 13 April 2007 - 04:52 PM

You have plenty of questions dontcha? ^_^
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users