clone var

Talk about making games.

clone var

Postby Game A Gogo » Thu Aug 25, 2005 1:58 pm

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:
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 makslane » Thu Aug 25, 2005 2:10 pm

I didn't understand. Can you explain better?
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Game A Gogo » Thu Aug 25, 2005 2:34 pm

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
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 willg101 » Thu Aug 25, 2005 4:13 pm

Are you doing "destroy enemy" or "destroy event actor"?
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby Game A Gogo » Thu Aug 25, 2005 4:15 pm

willg101 wrote:Are you doing "destroy enemy" or "destroy event actor"?


destroy event actor
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 willg101 » Thu Aug 25, 2005 4:16 pm

Hmmm...

I have no clue...
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby Game A Gogo » Thu Aug 25, 2005 4:23 pm

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
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 willg101 » Thu Aug 25, 2005 4:25 pm

Sweet!
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby Game A Gogo » Thu Aug 25, 2005 4:30 pm

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
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 willg101 » Thu Aug 25, 2005 4:33 pm

Hahaha :lol: !
Yes, I did!
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby Game A Gogo » Thu Aug 25, 2005 4:41 pm

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
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 Game Development

Who is online

Users browsing this forum: No registered users and 1 guest