Page 1 of 1

clone var

PostPosted: Thu Aug 25, 2005 1:58 pm
by Game A Gogo
Makslane, why those when you put variable and clone it there are share.
I.E.:one of my actor:Ennemy.0 have a hit conter and when it reach 0 eveery clone is destroyd, can you make VAR that are only aplied on one actor\clone.

PLEASE :cry:

PostPosted: Thu Aug 25, 2005 2:10 pm
by makslane
I didn't understand. Can you explain better?

PostPosted: Thu Aug 25, 2005 2:34 pm
by Game A Gogo
here the problem:

actor properties:
enemy.0 and enemy.1

create actor
Code: Select all
hit=3;

collision (anyside,shot)
Code: Select all
hit-=1;
if (hit==0)
{
//destroy actor(event)
}


shot

draw actor
Code: Select all
yvelocity=-7;


ship

KeyDown(SpaceBar)-CreateActor(Shot)


when the enemy var reach 0, the clones: enemy.0 and enemy.1 get destroy.

can you make like when you clone actor the var clone themselve to hit.0 and hit.1

PostPosted: Thu Aug 25, 2005 4:13 pm
by willg101
Are you doing "destroy enemy" or "destroy event actor"?

PostPosted: Thu Aug 25, 2005 4:15 pm
by Game A Gogo
willg101 wrote:Are you doing "destroy enemy" or "destroy event actor"?


destroy event actor

PostPosted: Thu Aug 25, 2005 4:16 pm
by willg101
Hmmm...

I have no clue...

PostPosted: Thu Aug 25, 2005 4:23 pm
by Game A Gogo
I have found something, but i give random health.

I just change that on destroy event of event actor, all the other clones there healt are set to full, anyway its only going to brieng the game more interesting :D :D

PostPosted: Thu Aug 25, 2005 4:25 pm
by willg101
Sweet!

PostPosted: Thu Aug 25, 2005 4:30 pm
by Game A Gogo
willg101 wrote:
willg101 wrote:
Game_a_Gogo wrote:??? what do you meen by: sweet :?


Where I live, that's like saying "Awesome". 8)


you ment :awsome, right :P

PostPosted: Thu Aug 25, 2005 4:33 pm
by willg101
Hahaha :lol: !
Yes, I did!

PostPosted: Thu Aug 25, 2005 4:41 pm
by Game A Gogo
yaeh, anyway from my SS X-1\2 (I dont know which version anymor :lol: ) have you done my turret, if its not in GIF I can transforming it to GIF