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.

SYNTAX, BLAH

I'm having a minor syntax issue with a call script in setting an event's move speed to 3.5. I'm using "$game_event[46].move_speed = 3.5" but evidently I'm doing something wrong, as RMXP is continually rejecting it. I've searched around on multiple forums and haven't found the answer anywhere; help?
 
1) What error are you getting?

2) There is no $game_event in the default system. There is a $game_map.events[]
are you using any custom scripts?

Also, the 'move_speed' property of Game_Character does not have an assignment method.

Add this line to Game_Character 1, in the Public Instance Variables section:

attr_accessor :move_speed

then use

$game_map.events[46].move_speed = 3.5
 

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