- Joined
- Oct 28, 2015
- Messages
- 222
- Reaction score
- 223
- First Language
- German
I was experimenting with an plugin to cause the player to bounce away from an onMap enemy like you know it from SNES or Gameboy Zelda Titles.
I used $gamePlayer._x to alternate the position of the sprite which actually worked, but it let me bounce into walls and if you enter a float value to just bounce a quarter tile for example the player controller seems not to know where he currently is and you are not able to walk any longer.
Anyone got an idea how to alternate position without getting stuck between tiles? Maybe there is even an plugin that i just didn't found to do the trick
I used $gamePlayer._x to alternate the position of the sprite which actually worked, but it let me bounce into walls and if you enter a float value to just bounce a quarter tile for example the player controller seems not to know where he currently is and you are not able to walk any longer.
Anyone got an idea how to alternate position without getting stuck between tiles? Maybe there is even an plugin that i just didn't found to do the trick