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.

Deplacement script > little debugging

First excuse me for my English, I'm French, and I'm not so good in English...

I've made, with native script, an deplacement script.
I will that events (heros too) walk in 1/4case.

My problem is I can walk throught event when (script are universal, yeah !) @x != @x.to_i or @y != @y.to_i

The scripts I have are :
Deplacement :
Code:
#====================================================================
# â–  Game_Character
#====================================================================
class Game_Character
  #--------------------------------------------------------------------------
  # â—
 
BUMP !

It can also be a script request, with material.
But yes I want simply fix an error :
event with non-integer coordonate (@x != @x.to_i or @y != @y.to_i) are passable(s ?).
 

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