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.

URGENT: SideBattle System Error, plz help!

ogh

Member

Code:
      if timing.se.name [color=red]!=[/color] ADD_ANIME_FILE
        names = timing.se.name.split(/#/)
        id = names[1].nil? ? ADD_ANIME_ID      : names[1].to_i
        # ƒAƒjƒÃ‚Â
 
It seems to have worked for now, thanks alot. The problem is the error happens randomly so I can't tell for sure except over time.

Could you please explain to me what the problem was exactly, what did the change do? I'm trying to learn as well from these mistakes.

Also there's a command that has the monster enemy jump back after performing a magic skill, could you plz put a relay if its not there, so that I can call that feature on/off from a script call within game. This is since some of my monsters are big and their bodies disappear down screen, so if they jump, one can see that their bodies are cut.

Thanks alot
 
Same problem happening only a different line:

Code:
      if timing.se.name =~ MOVE_FILE
        names = timing.se.name.split(/#/)
        quick_return= names[1].nil? ? MOVE_RETURN      : names[1].to_i
        speed       = names[2].nil? ? MOVE_SPEED       : names[2].to_i
        x           = names[3].nil? ? MOVE_COORDINATES[0] : names[3].to_i
        y           = names[3].nil? ? MOVE_COORDINATES[1] : names[4].to_i
        # ˆÃƒÅ¡“®‚ðŠJŽn
        self.start_moving(quick_return, speed, x, y)

When I changed it to

Code:
if timing.se.name != MOVE_FILE

Everyone starts jumping super high when they attack. Plz help anyone.
 
That's the same place I took it from, and I'm encountering this problem druing battles (I believe when I attack with a skill right after the enemy performs one).

Can anyone please explain this to me, perhaps Seph/Triskter, can you let me know what exactly is the problem, this is really delaying me from progress and I can't release my demo until it's fixed.

Thanks
 
I don't think so, it happens even in blank projects with only this script running, it's usually when my attack reaches the enemy RIGHT after it attacks me.

Please is there anyone who understands this error and why it's happening, more important how to fix it/
 

ogh

Member

i cant understand why this is ocurring with you... i use the same script and nothing this happens with me... are you using a rtab too? im using, maybe this is the diference...
 

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