0 votes

Hi all,

Funnily enough I've been working a lot with sprites as characters, as static entities, etc, but so far haven't had one move from one point to another.

I want to do the classic "get 1 point, have coin/star float from the place I got point to the score area at top of screen. I'll be going for a slow beginning movement (ease out) to a fast exit / contact with coin (linear in).

I can't for the life of me figure it out. Can anyone point me in the right direction so I can have a crack at it?

Any help would be much appreciated.

All the best,

Rob

in Engine by (825 points)

1 Answer

+2 votes
Best answer

You should look into the Tween node.

There are already some answers to your question with examples and all ;)

Have a look at https://www.reddit.com/r/godot/comments/4umbkk/can_someone_explain_tweening/

And of course look up Tween in the Godot docs

by (306 points)
selected by

Apart from the tween/animation could be better to remove the active coin object and create a coin sprite that moves on the GUI layer from the screen position of the coin to the score.

Fantastic link. It looks pretty powerful, especially the function callbacks etc. Much appreciated.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.