best option for game PERFORMANCE. constrain or move?
![app-etite](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hi.
My game has several actors scrolling in from the right, about 20. They all have an invisible actor on it for it collision. At the moment my object actor and invisible collision actor move at the same speed across the screen.
What would be better on performance.
Having my object actors and invisible collision constrained to one another which will allow me to uncheck movable on either one?
or
keep it as it is without any constrains and leaving movable on all my object actors?
Thanks
My game has several actors scrolling in from the right, about 20. They all have an invisible actor on it for it collision. At the moment my object actor and invisible collision actor move at the same speed across the screen.
What would be better on performance.
Having my object actors and invisible collision constrained to one another which will allow me to uncheck movable on either one?
or
keep it as it is without any constrains and leaving movable on all my object actors?
Thanks
Comments
Can I have interpolate moving at a certain speed, not duration? because my actors are laid out on a 2000pixel wide screen and with duration set on then they will move at different speeds because they are in different positions right. : \ ?
thanks
Interpolate pretty much needs a beginning and ending value, so i don't think a continuous interpolate would work. You could try "every 1 second> interpolate" for both x and y, but that could also get messy. If you do that make sure interpolate lasts not as long as the timer.
I wish I could use Interpolate as everybody seems to love it as a good behaviour for better performance.
DAMMIT!!
then in your interpolate behavior for the postiont interpolate to the attribute intermove
since there all moving 400 pixels from where they are with the same duration you can keep the same speed.
as hard as it seems you can use interpolate for just about everything. of course its not alwasy a easy fix, but its worth the time and effort. play around with it somemore.
Thanks for advice.
The way i have my game laid out is a very wide scene with various actors placed in the exact place i want them to be when they move on camera. With the move behaviour it perfect for this.
Would having...when actors is less than 500 lets say.. Just before it moves onscreen.. Then switch it to interpolate across screen. Would that be worth anything on performance??