Moving Platforms...Is it Possible?

Talk about making games.

Moving Platforms...Is it Possible?

Postby 11658 » Sun Jan 23, 2005 2:01 am

I'm making a platform game and I want to have moving platforms. Is that possible? If so, how?
11658
 
Posts: 7
Joined: Sat Jan 22, 2005 8:06 pm
Score: 0 Give a positive score

Also, ladders???

Postby 11658 » Sun Jan 23, 2005 2:04 am

Are ladders possible?
11658
 
Posts: 7
Joined: Sat Jan 22, 2005 8:06 pm
Score: 0 Give a positive score

Postby makslane » Sun Jan 23, 2005 7:40 pm

I'm making a platform game and I want to have moving platforms. Is that possible? If so, how?


You can move the platforms like any other actors in your game. You can use paths, you can change the (x, y) coordinates in a Script Editor.

Are ladders possible?


When the player collides with a ladder, you can enable, using a variable, the up and down, and disable on collision finish event.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Ladders

Postby 11658 » Sun Jan 23, 2005 8:22 pm

What exactly would that script be and what would I need to put exactly for events?
11658
 
Posts: 7
Joined: Sat Jan 22, 2005 8:06 pm
Score: 0 Give a positive score

Postby jazz_e_bob » Mon Jan 24, 2005 4:41 am

ladders would be easy

Use an actor variable integer "canClimb"

When you collide with a ladder canClimb = TRUE;
When you end collision with a ladder canClimb = FALSE;

If you are next to a ladder and canClimb == TRUE then pressing up makes you go up.

Bugga. I just noticed that M has already said this! :oops:

Image

Moving platforms? Moving them is easy. Jumping on and off of them is tricky! When you solve that one tell me! :wink:
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby Dark RyNo » Fri Feb 11, 2005 10:27 am

Im trying to put moving platforms in a game at the moment.
I didnt use paths as the size of the dots means you cant put them close enough together and the platform moves too fast.
I used timers and script editing.
Ive made jumping on work. I put in all the physical responses of a normal block and then added something.
On Collision with Topside of Movingplatform
Change Parent of Event Actor to Moving Platform.

It worked. He stays on the platform.

Problem. When I jump off, it stays his parent so he moves around and stuff.
I tryed doing.
On Collisionfinish with topside of Movingplatform
Change Parent of Event actor to no parent.

But that didnt work. It is still his parent, I dont understand why though.
Dark RyNo
 
Posts: 35
Joined: Tue Feb 08, 2005 7:04 pm
Score: 0 Give a positive score

Moving PLatforms solved!

Postby Dark RyNo » Fri Feb 18, 2005 11:05 am

Problem Solved!
You just make it:
On Collision Finish with topside of movingplatform
change Parent of event actor to a still object in your game like a tree or something. (for some reason no parent didnt work for me)
Just be careful you dont delete that still actor.
Dark RyNo
 
Posts: 35
Joined: Tue Feb 08, 2005 7:04 pm
Score: 0 Give a positive score

Postby jazz_e_bob » Fri Feb 18, 2005 6:52 pm

Excellent work! :)
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

¬¬

Postby Louiz_ofRohr » Tue Apr 26, 2005 8:19 am

HEY!!!!!
Why to move all the stage when you can just change the global property:

view.y
&
view.x

where view is eq to "camera view".. or "camera position"..

try something like move the "camera" with arrowKeys..

view.y -= 5;
it moves the "camera" 5 points up..

view.y += 5;
it moves the "camera" 5 points up..

view.x +=5;
it moves the "camera" 5 points right;

view.x -=5;
it moves the "camera" 5 points left;

try that..

is much better..
much more fast..
much more powerfull..

=]]]
The worst foe lies within the self..
Louiz_ofRohr
 
Posts: 2
Joined: Tue Apr 26, 2005 7:12 am
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest