Put tweens in Scene object.
Thanks for responding,
What do you mean global update/ overriden update?
i'm new to game development, forgive me if i seem a little green.
I actually working with the Game Part5 demo, i used it to get started.
so just to confirm i can instantiate a tween from anywhere and it should work?
Also the a dragsprite, and i want the Sprite to snap back to its position on touch up. if i set the position of the sprite it works fine, but if i want to tween the position it doesn't work.
I'm at a bit of a loss, which is a shame.
also, i've also used a on complete call back, which successfully called the function. just no tween.
I've followed the tutorials and demo scripts, and successfully tweened objects.
But in my own project tween doesn't work.
i add a tween to A(sprite):
I have also tried:
but it still didn't tween.
A(Sprite) is a object included in a parent Actor.
The tween is called via an event listener.
do you have a URL link that has more details on how to use tween, or any advice on how tweens where/should be created.
I'm a bit of a novice .
Basically i'm trying to swap the positions and priorities of a array of sprites, the problem is when i swap one sprite it puts two sprites on the same priority. That gives me the issue i'm having with GetNextSibling().
because there are two sprites on the same priority getnextsibling() returns the sibling with the priority recently changed.
do you have any ideas of a better way to do this?
i have a while loop where i iterate a list of sprites.
i assume getNextSibling returns the next object in the order of the objects Priority.
however for some reason getNextSibling returns the objects 1,3,5. leaving out 2 and 4. and i cant understand why.
this is an example of my loop
a = safeSpCast<Sprite>(d->getNextSibling());
#returns siblings 1,3,5. should return 1,2,3,4,5...
Looks like your connection to Oxygine was lost, please wait while we try to reconnect.