Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Script for Dash...

WiZ`

Member

hello everyone ^^ i need your help pls :p
i need to make this script, i'll try to describe it ^^

Code:
If Z is pressed
   [b]Change Hero Speed[/b] 6
   [b]Change Graphic Hero's Character[/b] ("Hero_Dash")
   [b]Move forward[/b] (ignore if can't move)
   [b]Move forward[/b] (ignore if can't move)
   [b]Move forward[/b] (ignore if can't move)
   [b]Wait untill the end of the movement[/b]
   [b]Change Graphic[/b] Back to normal
   [b]Change Speed[/b] Back to normal

it seems easy, but it isn't XD first of all i don't know how to write in rgss "wait untill the end of the movement" second thing, i don't know how to say that if the character can't move the script have to ignore it and go on, whitout lock the character
and the last thing... this is a little hard to say for me... (i wont to say you that i'm not english XD this is why my english is a really big big mess :p)
for the graphic... when you change it normally, the sprite make a loop

Code:
|---|---|---|---|
| 1 | 2 | 3 | 4 | <- for each direction
|---|---|---|---|

the problem is that when you move whit normal characterset the graphic work like: 1 2 3 4 3 2 1 whit a loop... i think this is not so hard to understand...

i need to make it work like: 1 2 3 4 4 4 4 ... ... untill the end of the dash, then back to normal loop whit the normal movement graphic...

the most important thing anyway is the "wait untill the end of the movement" because whitout it, if you spam the Z key... you can make run your character...

thanks for you attention ^^ i hope in some help :p
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top