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.

Move by Script

Xrazor

Member

Heyho,

I didn't find anything with the search-function, so I decided to ask
in a new Thread ;)

At the Moment I'm scripting a Zelda-like ABS and now I got a big
problem, when you hit an enemy in Zelda(2d) he is pushed back and
I want to do this, too. But I couldn't figure out, how to use the
Eventmovefunction in my script. When I usw p at @parameters[1] in
the Interpreter I get this string:

Code:
#<RPG__MoveRoute:0x12cb628 @list=[#<RPG::MoveCommand:0x12cb340 @parameters=[], @code=13>, #<RPG::MoveCommand:0x12cb220 @parameters=[], @code=0], @skippable=true, @repeat=false>

I know that RPG::Move**** is the Module and the Included class to
make the Event move, 13 is the code, that gives the command to
move one step back and the rest should be obvious according to the name.

But still I don't know how to use it, cause when I set a variable equal to this
I just get Errors, when I'm trying to use it.

The last Hope I got is to ask you guys for a solution :)
 

Xrazor

Member

What the Fu** :D

That's really stupid, my fault sorry.
I did a Typing mistake, so it couldn't work with that method,
just because it's not existing... to tell you what my mistake was:

I wrot ****.move_backwards

Please slap me ;) Thanks for the Help.
 

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