Jump to content


Photo

Solved!


  • Please log in to reply
8 replies to this topic

#1 Wraith

Wraith

    GMC Member

  • New Member
  • 75 posts

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

Edited by Wraith, 25 August 2009 - 12:44 AM.

  • 0

#2 IceGladiator

IceGladiator

    GMC Member

  • New Member
  • 24 posts
  • Version:GM:Studio

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 :whistle: 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!
  • 0

#3 PASSOUT

PASSOUT

    GMC Member

  • GMC Member
  • 563 posts

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?
  • 0

#4 Wraith

Wraith

    GMC Member

  • New Member
  • 75 posts

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)

}
  • 0

#5 Southman

Southman

    I simply am not here

  • GMC Member
  • 1662 posts
  • Version:GM:Studio

Posted 25 August 2009 - 12:09 AM

is "display error messages" unchecked in the global game settings?
  • 0

#6 chaz13

chaz13

    GMC Member

  • GMC Member
  • 3830 posts
  • Version:Unknown

Posted 25 August 2009 - 12:10 AM

is "display error messages" unchecked in the global game settings?


Or "Abort on all error messages"?
  • 0

#7 Wraith

Wraith

    GMC Member

  • New Member
  • 75 posts

Posted 25 August 2009 - 12:12 AM

all i have checked is display all error messages, and treat uninitized vars as 0
  • 0

#8 Southman

Southman

    I simply am not here

  • GMC Member
  • 1662 posts
  • Version:GM:Studio

Posted 25 August 2009 - 12:16 AM

...and treat uninitized vars as 0

why
  • 0

#9 Wraith

Wraith

    GMC Member

  • New Member
  • 75 posts

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.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users