what on earth?

Game Editor comments and discussion.

what on earth?

Postby frodo » Fri Jun 30, 2006 9:43 pm

I have three clones of the same actor and I have when energy==0 destroy actor event actor.
when the energy on the first clone goes below 0 all three actors get destroyed. :shock: why :?: :?: :?: :?: :?: :?: :!: :( :evil: :twisted: :x :twisted: :twisted: :evil: :evil: :evil: :evil: :twisted: :evil: :twisted: :oops: :roll: :roll: :twisted: :x :D :shock: :shock: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil::evil::evil::evil::evil::evil::evil::evil::evil::evil::evil::evil::evil::evil::evil::evil::evil:
Last edited by frodo on Thu Jul 06, 2006 11:28 pm, edited 1 time in total.
Whoever created GAME MAKER was very dumb!
User avatar
frodo
 
Posts: 127
Joined: Tue Mar 21, 2006 6:53 pm
Location: universe
Score: 2 Give a positive score

Postby makslane » Fri Jun 30, 2006 9:51 pm

You need use DestroyActor("Event Actor") or specify the clone name.
If you use DestroyActor("player") all player actors will be destroyed.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby frodo » Fri Jun 30, 2006 11:36 pm

I do event actor, and It still destroys all of them. In the "actor.1" script, I do DestroyActor("actor.1") and it changes it to "actor.1" in the "actor.2", and "actor.3" scripts too. this is realy wierd this never happened to me before!
Last edited by frodo on Thu Jul 06, 2006 11:29 pm, edited 1 time in total.
Whoever created GAME MAKER was very dumb!
User avatar
frodo
 
Posts: 127
Joined: Tue Mar 21, 2006 6:53 pm
Location: universe
Score: 2 Give a positive score

Postby makslane » Fri Jun 30, 2006 11:54 pm

The actions are shared with all clones
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby frodo » Thu Jul 06, 2006 11:13 pm

what can I do?
Whoever created GAME MAKER was very dumb!
User avatar
frodo
 
Posts: 127
Joined: Tue Mar 21, 2006 6:53 pm
Location: universe
Score: 2 Give a positive score

Postby irblinx » Fri Jul 07, 2006 4:34 pm

You'll need to put the script into a different actor so that it can reference the clones individually, maybe in view, or something that's always on screen or even a dummy actor?

To be honest, I'm surprised that "Event Actor" doesn't work from the clones script.
irblinx
http://www.irblinx.me.uk/Crania.htm
Current projects: Crania deluxe for Mac, iCrania
User avatar
irblinx
 
Posts: 122
Joined: Wed Apr 19, 2006 11:15 am
Location: Manchester, UK
Score: 6 Give a positive score

Postby Game A Gogo » Fri Jul 07, 2006 8:11 pm

why dont you use a var??
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby frodo » Tue Jul 18, 2006 5:43 pm

a var? :?: what's that?
Whoever created GAME MAKER was very dumb!
User avatar
frodo
 
Posts: 127
Joined: Tue Mar 21, 2006 6:53 pm
Location: universe
Score: 2 Give a positive score

Postby Game A Gogo » Tue Jul 18, 2006 8:58 pm

Variable
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron