spawning actors
papito
Member Posts: 8
first weak here i would love some help
I made 4 actors and i want to spawn only 3 of them using a timer.
I made 4 actors and i want to spawn only 3 of them using a timer.
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
You do realise that if you're giving a spawned actor a certain position, that if the position is not changed for repeated spawns, you'll just get a very neat pile of actors exactly on top of one another, looking like just one actor.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Try being more verbose. Explain the context and give an example from another game that is similar to what you want. I started to make you a demo and stopped because I couldn't figure out what you meant.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
http://forums.gamesalad.com/discussion/comment/449790/#Comment_449790
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Then you make a constarin atribute in the moving actor game.counter duration to 10/self.motion.linearVelocity.y then in spawner if game.time=>game.counter+game.stamp change atribute gma.counter to game.counter+1 and another change atribute game.timestamp to game.time
is this correct becouse nothing is hapening
and also i can get the divided by symbol or / this is the same
Constrain attribute game.counterDuration to 10/self.motion.Linear Velocity.Y
If attribute game.Time ≥ game.counter + game.timeStamp
Change attribute game.counter to game.counter + 1
Change attribute game.timeStamp to game.Time
You're constraining game.counterDuration but then not using it at all in the rule. It has to be part of the rule condition. I also think you're going to need a larger multiple than 10 because 10/100=0.1 and 10/200=.05, so you'd be repeating this loop every 0.1 or 0.05 seconds if your velocities are that high.
But more importantly, I thought you wanted the increase in speed to be dependent on time, not on speed...?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User