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.

[Resolved] Where to make the actual movement slower?

Hiyas~

One more thing. ^^

Where would I have to go, to make @move_speed = 1 make a character go slower than it is right now?

Because I want a gate to open really slooowwlllyyy. And the left and right side are two seperate charsets moving away from eachother. But even at @move_speed = 1, it goes way too fast.

Thank you!! ^^
 
I am not sure at the moment, but pixel movement allows decimal move speeds (if I remember correctly).

f0tz!http://www.rmxp.org/forums/viewtopic.php?f=11&t=624

You could try to look in the script under @move_speed, but I honestly know nothing about that system.

I'll check in a bit if you can't figure it out and see what I can't come up with.
 
Aha~ ^^ Well I can't go using pixel movement.~ That script would change the whole game. :3!

I was thinking, if @move_speed = 1 means 1 pixel per frame, it should be possible to do an on/off thing, right? Like making a temp variable that gets + 1 each time too, and when that variable is 2 or w/e, one pixel is moved and the variable goes back to 0. You know? ^^
 

Zeriab

Sponsor

Just set the @move_speed to be below 1.
Here is the equation defining distance in pixels per frame:
Code:
distance = 2 ** @move_speed

When @move_speed is 1 then the character moves with 2 pixels per frame.
If you set @move_speed = 0 it moves with 1 pixel per frame.
If you set @move_speed = 0.5 it moves with approximately squareroot of 2 pixels per frame (on average)
If you set @move_speed = -1 it moves 1 pixel every two frames.

There are in short plenty of options to choose from ^_^

*hugs*
- Zeriab
 
Oeh. Awesome, thanks!! ^^

Now my gate can open really slowly ahaha~

screenshot047.png
 

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