Anybody need a demo?
Asymptoteell
Member Posts: 1,362
I was wondering if there was anything that anyone needed a demo for. I wanted to make some demos for the website, but didn't know what to make one for. If you suggest one, I'll try to do it.
Comments
I hope not to make you regret your offer...
This is as close as I've come to figuring it out but I'm still struggling.
http://gamesalad.com/forums/topic.php?id=3107
Please if you find the way feel fre to send me an email: lordtarantor@yahoo.com
Thanks a lot
Have you constrained the first one's rotation to a game attribute, then set the second one's rotation to that attribute?
http://picasaweb.google.com/100251998442020610345/UntitledAlbum#5545125788807298370
http://picasaweb.google.com/100251998442020610345/UntitledAlbum#5545125790412605602
http://picasaweb.google.com/100251998442020610345/UntitledAlbum#5545125784454764098
http://lh4.ggpht.com/_UuhyrrJL3hA/TPQ-hTSGQSI/AAAAAAAAABA/zGp0KvD8-0U/Earthsplosion.png
The victim has a constrain that state victim x,y self position x,y. In the victim I also have a self attribute called Distance. Then a constrain that state self distance to magnitud(self.positionX-game.predator x and the same for y. then a rules = atribute self distance < or= 70 self active to true ( another self attribute). Then a rule- attribute self active is true acelerate towards game.predator x,y -70 .
Up to there everything is fine
When they collide with the touched destroy this actor and spawn a touched one.
Here is the problem: when there are more than one predators (touched ones) the not touched ones only run away from only one predator. Is like the last predator that arrive to the game is the actual predator.
What I need is that the not touched ones try to run away from all predators and not from the last to arrive the game. That is a complete different game...
Spawned actors are prototypes.
What you think I should do is every time I spawn a new predator that predator should be a different actor with maybe a different constrain in each one like predator x,y and the second should has a constrain predator x2,y2 and so on.
For me this is to much because if I have 20 predators there will be a lot of constraining and every victim will have a rule for each predator.
I am looking for a simpler way.
Asymptoteell
I think I am going to start working with all the rules.
Thanks again.