Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

gamedogue

3
Posts
A member registered Mar 30, 2020

Recent community posts

Hi 8BitWarior. I noticed a possible issue. I would like to run two tweens on the same object at the same time. The mode of a first is TWEEN_MODE_BOUNCE and the mode of the second is TWEEN_MODE_ONCE. So basically what I want is to rotate the object and also scale it up at the beginning and scale it back down at the end. The bounce one is not working, it uses the once mode. Following is my code:

TweenFire(
self, // Target
EaseLinear, // Ease function
TWEEN_MODE_BOUNCE, // Tween mode
true, // Use delta time?
0.0, // Delay
0.3, // Duration

"image_scale", // Property
image_xscale, // From value
image_xscale * 0.9 // To value
);

TweenFire(
self, // Target
EaseLinear, // Ease function
TWEEN_MODE_ONCE, // Tween mode
true, // Use delta time?
0.0, // Delay
0.3, // Duration

"image_angle", // Property
image_angle, // From value
image_angle + _angle // To value
);


I want to click an object and then move couple of other objects and when all of them finished moving, I want to set some flag. Each and every object moves and rotates to different position.

Hi 8BitWarrior. Thank you for sharing this library. May I ask you a question. Is there a way how to tween a group of tweens and then invoke a callback when all of them finished tweening? So far I managed to achieve that by having a count of individual tweens then calling a finished callback on each tween and then when the count of callback invokations reaches the total count, then execute the final finished code. But to me it doesn't look very elegant. Please advice. Thank you.