The best tween tips

Hey guys

Im reaching out to the community to ask you if you all know some cool must have tween effects.as you all know there are almost limitless possibilities with tweens.

Can you please share your best tween effect, what they do and examples of usage?

I want to make a tween death animation that makes enemies fall over and fade away. Is there something else that could look nice apart from the rotation and the opacity fade?

2 Likes

Hi Sectoidzor, I had fun with something similar recently but without the falling over part. I used the Shake Object extension then a scale tween which also destroyed the object. At the end I used a particle explosion. I didn’t use any opacity fading effects. Unfortunately the gif doesn’t show the shaking well, it shakes more from side to side than shown here.

DeleteObject

1 Like

Tween Y position with bounce easing
Tween X position with linear easing

2022-11-11_09_36_YM7Rq1wyjL_GDevelop

2022-12-16_21_18_UbKbzD3eaM_GDevelop

3 Likes

Very Nice. I love the shake object extension. I use it on my healthbar object when the player takers damage. Im at work now but i can show later.

I tried messing with 2d particle emitters yesterday. The free effects from gdevelop library are huge but i couldnt figure out how to make the effect smaller. Resizing the object did not help.

Yeah, it took me a very long time to get that explosion the way I wanted it for size and number of particles or density. I think the size was defined here:

This video does a really good job at explaining what each parameter does.

Wtf this is so cool, I wanted for a while to do something similar!

I think Gdevelop should add a way to preview the Particle effects while you are editing them, maybe a small screen when you click to edit the particle object. I tend to avoid particles cause it takes a while to get the effect you want, exactly the way that you want to.

1 Like

Found one of my experiments from the past. I used an offset on the water tile and an x scale tween on the sand/foam for a wave effect.

WaveTween

1 Like

Haha, I told my wife the other day I had issues with the tweens in my game.

She looked at me funny and said “just ignore them”.

1 Like

Exactly! Me too, i spend a lot of time drawing my own effects as objects instead. They Usually come out stale but usable :sweat_smile:

1 Like

It is well done Bubble!

The function Tween is very intéressant and powerful.

Xierra

It’s not as exciting as the others, but I often use a simple tween loop to simulate swinging things. In this case a sign in a supermarket. I’ve used this for a spider dangling from the ceiling too. For this to work, the centre point needs to be placed at the point you’d like the rotation to hinge on. I expect it could be done with a custom point too, but I haven’t needed to do that.

simple_swing_loop

And here are the events:

2 Likes

If you want to tween something at a set speed and it takes however long it takes to get there you can use this formula for the tween duration once you plug in your own values:

abs(DistanceBetweenPositions(start.X(), start.Y(), newLocation.X(), newLocation.Y()) / speed)