Welcome Guest ( Log In | Register )

[ Big| Medium| Small] -



Post new topic Reply to topic  [ 1 post ] 
    XxRukiriXx
  Sun Aug 01, 2010 8:09 am
User avatar
Member

INFO
This little script was made for creating RPGs and making them much much easier to code, this way you do not have to time HOW long
a sprite should move with a grid.

If you're using pixel-movement change the timer in the object to 2, though 4X4 or 8X8 is good.
Chrono Trigger and the Mana games used these grids.

Usage
RPG:Move_Sprite(object,direction,# of tiles to move)

Facts:

The timer for the movement object is timed for a 8X8 grid(snes) so if you need to time for say 32X32 it should be no different in time.
But, each grid has a different time which it needs to be set at.

Please be advised that you'll need to code the actual move sprite object, I gave an example for moving south(down), it's the same process for each direction. Just use the switch function and carry out the motion sets accordingly.

- Rukiri

Expand to see the code.


// obj_move_sprite

Expand to see the code.

_________________
Eternia: Salome Dreams [A-RPG]


Top Top
Profile      
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


Who is online

Users browsing this forum: No users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

cron
We are an independent, not-for-profit game making community.
Homepage
Board Index
About Us
Downloadable Games
Free Browser Games
Games in Development
RPG Maker Support
Game Maker Support
Construct 2 Support
HBGames the eZine
Advanced RPG Maker
Site Announcements
Powered by phpBB © phpBB Group