Edited by Wraith, 25 August 2009 - 12:44 AM.
Solved!
Started by Wraith, Aug 24 2009 11:17 PM
8 replies to this topic
#1
Posted 24 August 2009 - 11:17 PM
I put the spawning the my players step event instead of the destroy event, it works fine now
#2
Posted 24 August 2009 - 11:36 PM
We would need to see what you have. Are you using the drag and drop items or GML?
Drag & Drop: This symbol restarts the game
So see if you have that sitting somewhere in your collision detection.
GML: Look for 'game_restart' or even 'room_restart' in your code.
If your still stuck post what you have already. Good luck!
Drag & Drop: This symbol restarts the game
GML: Look for 'game_restart' or even 'room_restart' in your code.
If your still stuck post what you have already. Good luck!
#3
Posted 24 August 2009 - 11:39 PM
Post what you have for the destroy part of the script. And what does the second player have for the create event?
#4
Posted 25 August 2009 - 12:03 AM
naw, hear is what i have.
in the step event:
if hp < 1
{
instance_destroy()
if global.whos_dead = 0
{
global.whos_dead = 1
}
}
--------------------------------------
in the destroy event:
if global.whos_dead = 0 <-- 0 means no ones dead, the arrows not part of the thing.
{
instance_create(48,40,zombie_player)
instance_create(x,y,zombie_hand)
}
in the step event:
if hp < 1
{
instance_destroy()
if global.whos_dead = 0
{
global.whos_dead = 1
}
}
--------------------------------------
in the destroy event:
if global.whos_dead = 0 <-- 0 means no ones dead, the arrows not part of the thing.
{
instance_create(48,40,zombie_player)
instance_create(x,y,zombie_hand)
}
#5
Posted 25 August 2009 - 12:09 AM
is "display error messages" unchecked in the global game settings?
#6
Posted 25 August 2009 - 12:10 AM
is "display error messages" unchecked in the global game settings?
Or "Abort on all error messages"?
#7
Posted 25 August 2009 - 12:12 AM
all i have checked is display all error messages, and treat uninitized vars as 0
#8
Posted 25 August 2009 - 12:16 AM
why...and treat uninitized vars as 0
#9
Posted 25 August 2009 - 12:19 AM
because when i have wpn switching i forgot got to do if instance_exists() ive only been work about an hr and a half, ill fix everything later.
most of my time has been spent on graphics, the game is half iso.
most of my time has been spent on graphics, the game is half iso.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











