Main Menu
  • Welcome to The RPG Maker Resource Kit.

[GM] Platform moving

Started by Edwin VanCleef, June 04, 2007, 05:13:15 PM

0 Members and 1 Guest are viewing this topic.

Edwin VanCleef

How do I make it the sprite only moves one step when I press a direction? Because if I press a direction it keeps going on without stopping.


The new generation will go to the distance... Will the distance between us smallen?

ChaosSpartan28

#1
If you're using the D&D coding, make 2 new events, released(Left) and released(Right), in your characers object.

Then in the release(Left) event drag and drop a "Execute a Piece of Code" from the control tab. Then double click it. Now in it type:

sprite_index="name_of_sprite_standing_left_without_these_quotes"
...for the right its basically the same.

Then in the release(Right) event drag and drop a "Execute a Piece of Code" from the control tab. Then double click it. Now in it type:

sprite_index="name_of_sprite_standing_right_without_these_quotes"


Example:
sprite_index=Mario_Standing_Left

Names dont have to be so complicated but it helps you know what sprite you want to use.
Sig by MacGravel

Edwin VanCleef

cant it be done with simple commands? Because I dont know any code and it's gonna be a pain in the ass to work with them


The new generation will go to the distance... Will the distance between us smallen?

ChaosSpartan28

Yes it can. Give me a sec.
Sig by MacGravel

ChaosSpartan28

(sorry for double post)

Here you go. Look at the examples in that winrar. They use basic commands to help you understand what you need to do.

Hope it helps. :D
Sig by MacGravel

Edwin VanCleef



The new generation will go to the distance... Will the distance between us smallen?

Arrow

Quote from: Stephen on June 04, 2007, 07:15:16 PM
(sorry for double post)

Here you go. Look at the examples in that winrar. They use basic commands to help you understand what you need to do.

Hope it helps. :D

Edit button, Stevoh.

ChaosSpartan28

I know, but he probably wouldnt have seen that I added the attachment. Anyways sorry. XD
Sig by MacGravel

Arrow

'S all right, I suppose. I like you anyway. ;8

ChaosSpartan28

Sig by MacGravel