Moving Platforms Without Paths?

Non-platform specific questions.

Moving Platforms Without Paths?

Postby happyjustbecause » Mon Oct 08, 2012 1:41 am

Hello gE community, as a follow up to my last question about levers/buttons that activate things like elevator, I want to know how I should do something like a moving platform without the use of paths. I was trying to do it in a good way, but it seems I was just getting sloppy using timers and such. I just want a moving platform that moves up and down without paths. How can I do this in an efficient way?
For small creatures such as we the vastness is bearable only through love.
-Carl Sagan

Night Knight Development Thread
User avatar
happyjustbecause
 
Posts: 267
Joined: Tue Jul 26, 2011 3:10 pm
Location: Frazier Park, Ca
Score: 15 Give a positive score

Re: Moving Platforms Without Paths?

Postby skydereign » Mon Oct 08, 2012 5:38 am

Moving without paths is just normal movement. You have x/y and xvelocity/yvelocity. For a platform that moves up, when activated set its yvelocity to some negative value and create a timer. When the timer triggers, reverse the yvelocity and create the timer again. Similar thing for any other direction or movement. You mentioned you tried something like this and having trouble, but it should work.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Moving Platforms Without Paths?

Postby happyjustbecause » Mon Oct 08, 2012 8:43 pm

Huh, last time I tried to use timers I failed, but this time I did it without difficulty. I guess that's all I have to say about this =D.
For small creatures such as we the vastness is bearable only through love.
-Carl Sagan

Night Knight Development Thread
User avatar
happyjustbecause
 
Posts: 267
Joined: Tue Jul 26, 2011 3:10 pm
Location: Frazier Park, Ca
Score: 15 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron