Hi, I'm new at this board.I'm quite new to the fenix scripting language and at the moment I'm working on a clone of the NES game "Battle City" by Konami. I'm hoping to port this game to the Dreamcast and maybe for the GP32 btw.
My problem is: I cant get a proper shooting function tu run. My process tank() calls the process tank_shoots() when the player presses the A key. tank_shoots gets the x/y-coordinates of the player's position und the direction tank() is looking at. Then a bullet flies in that direction.
If an enemy() and the bullet collid, the bullet and the enemy() both should be removed. Unfortunatelly this doesn't happen, instead the bullet goes through the enemy(which disappears, which is needed) but does not disappear. This way I can "kill" more enemies than one :/
Sometimes one the collision the bullet disappears but the enemy still is alive.
I guess the problem is caused by "collision(type player_shoots)" and "collision(type enemy)", that both are called within the processes. I've tried several combinations already such as removing the processes using REPEAT/UNTIL and LOOP/IF/END without succes
my code snippet from both processes:
Any help is appreciated. If anybody wants to see my full sourcecode or wants me to translate my full comments to english, I'll surely do so.
EDIT: BUG WAS FIXED BY GOITY!
EDIT2: A new problem appeared see my other reply
My problem is: I cant get a proper shooting function tu run. My process tank() calls the process tank_shoots() when the player presses the A key. tank_shoots gets the x/y-coordinates of the player's position und the direction tank() is looking at. Then a bullet flies in that direction.
If an enemy() and the bullet collid, the bullet and the enemy() both should be removed. Unfortunatelly this doesn't happen, instead the bullet goes through the enemy(which disappears, which is needed) but does not disappear. This way I can "kill" more enemies than one :/
Sometimes one the collision the bullet disappears but the enemy still is alive.
I guess the problem is caused by "collision(type player_shoots)" and "collision(type enemy)", that both are called within the processes. I've tried several combinations already such as removing the processes using REPEAT/UNTIL and LOOP/IF/END without succes
my code snippet from both processes:
Any help is appreciated. If anybody wants to see my full sourcecode or wants me to translate my full comments to english, I'll surely do so.
EDIT: BUG WAS FIXED BY GOITY!
EDIT2: A new problem appeared see my other reply