The Daily Click ::. Forums ::. Klik Coding Help ::. Anyone know how to make a lift?
 

Post Reply  Post Oekaki 
 

Posted By Message

JPMarkey (Jambo)



Registered
  04/05/2003
Points
  1057
30th May, 2004 at 19:24:09 -

Hey,

At scorpione we're making a new game and we're having a problem with making a sort of lift. I've sorted most of it out now he only hovers (instead of jolts) when the lift goes down.
Neway, if any knows how to make a lift on MMF using the platform movement object please could u tell me.

 
http://www.jpmarkey.co.uk

Mitch M

Possibly Insane

Registered
  09/02/2003
Points
  2472
30th May, 2004 at 20:43:41 -

you can code the lift like:

when value a = 1 then y=y+2
when value a = 2 then y=y-2

then code the character some:

object elevator collision
+ when value a = 1 then y_character=y_character+2

object elevator collision
+ when value a = 2 then y_character=y_character-2

The values/numbers are just examples. I dont know how the platform object works, but I think this'll do fine.



 
http://www.cysteine.tk/

Keatonian



Registered
  15/07/2002
Points
  571
31st May, 2004 at 12:26:17 -

Act like the lift is a normal backdrop, but create an (the lift is active)
object shaped like a line 3-4 px above it and :

When player collides with line
Flag 2 is off
---Set Lift flag 1 on
---Set Lift flag 2 on

Flag 1 is moving, 2 is down. (make another for flag 2 is on, then turn off, so it will also start up if its at the bottom.)
Then:

Every 0.02 secs
Lift Flag 1 on
Lift Flag 2 on
---Set Lift and Line at X+2 or so

Every 0.02 secs
Lift Flag 1 on
Lift Flag 2 on
Player overlapping line
---Set Player at X+2 or so (same speed as lift)

Then do the revearsed ones.
(flag 1 on, 2 off for up)
(and create other lines to stop the lift if going down/up)
Thats my full tutorial.


Image Edited by the Author.

 
-Above post is ancient and probably irrelevant-

An old account of mine, recently cleared out. It's a blast to the past, the age was marked as 14 when I found it. If you know where to look, you can track me. Au revoir.
   

Post Reply



 



Advertisement

Worth A Click