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.

Increasing event speeds over 6.

I want to make a bullet cross the game screen a lot faster than the highest speed of 6, perhaps 8.  I know how to do it with the game player but I cant get the event (bullet) to work with out crashing.  I know its only a teeny snippet of code, can someone explain to me in simple (copy and paste) terms how to do that please and hold my hand until it works.

Much appreciated.
 
Try this:

Make a new script:
Code:
class Game_Event < Game_Character
    attr_accessor :move_speed
end


And call script
Code:
$game_map.events[EVENT_ID].move_speed = 8

Switch EVENT_ID with the event ID, of course.

I think that'd work, but haven't tested it.
 

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