Respawn issue

O Ilusionista

Captain 100K
Guys, I am having a really weird bug.

I made an enemy, and when the player dies, the enemy starts to be controlled BY THE PLAYER. I am not using any spawnscript, so i don't know what this happens. No error at the log.

So I decided to start it from the scratch and made a new enemy. This control bug doesn't happens anymore, but sometimes when the player dies and respawn...the enemy get REMOVED from the screen (killed).

The log says nothing. Do anyone has any guess what is going on?
 
Yes, with a precise character - a boss that I made to fly and not drop. But from what I saw, there is nothing wrong.
The first bug (player control) doesn't happens anymore. But that was just the player entity copy with type ENEMY.
 
O Ilusionista said:
Yes, with a precise character - a boss that I made to fly and not drop. But from what I saw, there is nothing wrong.
The first bug (player control) doesn't happens anymore. But that was just the player entity copy with type ENEMY.

you can't copy from a player to an enemy.
Player entity use precise functions like think, try_move, aicontrol etc... that you initialize when you declare a type PLAYER.
So you need to create a NEW enemy, not a copy from player...

for kill bug, I sure that is a script issue.. see that player. try to comment script and Whole script events!
 
no, you get me wrong. I duplicated the player .txt and set the type to ENEMY at its header. So its an enemy now. This had worked with every boss I did, just not this one.
Dunno if the version of my game that you have has that enemy. Try the TRUCK stage (it should start with a dialog. If not, the boss is not there). If you fall from the truck (dies) and the boss is out of screen, sometimes it just get removed.

I can send you the game if you want.
 
O Ilusionista said:
no, you get me wrong. I duplicated the player .txt and set the type to ENEMY at its header. So its an enemy now. This had worked with every boss I did, just not this one.
Dunno if the version of my game that you have has that enemy. Try the TRUCK stage (it should start with a dialog. If not, the boss is not there). If you fall from the truck (dies) and the boss is out of screen, sometimes it just get removed.

I can send you the game if you want.

I'm so sorry, but I have no time I'm not in my home...
Somebody can help O' to understand please?
 
Back
Top Bottom