Bomb Soldiers?

Started by Starlock, January 02, 2016, 05:53:37 PM

Previous topic - Next topic
I noticed while looking through the zsdx and roth repositories that there were no bomb or bow soldiers. Is it possible to make an enemy that throws bombs?

January 02, 2016, 06:03:48 PM #1 Last Edit: January 02, 2016, 06:05:41 PM by MetalZelda
You can do like the greenknightsoldier.lua script.
But instead of going through the hero, you can make a movement that goes backward, and then at the end of the movement, make the ennemy arrow.
For the bomb, there is a map:create_bomb() (http://www.solarus-games.org/doc/latest/lua_api_map.html#lua_api_map_create_bomb), you can do this and make the ennemy to "throw" the bomb, with a movement.