#Is it possible to make this in godot?

17 messages · Page 1 of 1 (latest)

south bane
#

you could do the spin effect pretty easily by just having the x scale of the object go from 1 to 0 or -1. if you need each letter to appear as if they have depth, then animating sprite frames would likely be the easiest solution

patent socket
#

Well, I do have animations for each letter, but the question is, how to make them bounce into place?

#

I know I did this in a different program, Clickteam. But, I don't know how to translate it's event based code onto a coding language like Pythin or gd script.

rough flint
#

you could move the sprites along a path

patent socket
#

Along a path? Like in an animation player or something specific?

brazen comet
#

The animator is pretty powerful. You could do this in 3d with a couple animations and particles and shaders

south bane
#

a Path2D controlled by an AnimationPlayer or just programming their bounces in GDScript would likely be the best bet.

patent socket
#

well I'm trying to program the bounce in gd script as I need to practice. I had a few ideas but, I'm just getting a bit lost here.

#

A friend so far gave me an idea, and here's part of it.

var sega_S_sprite: Sprite
var sega_S_sprite_time: float = 0.15
var sega_S_sprite_end_pos: Vector2 = Vector2(20,0)
var sega_S_spd: float = 2.0

func _ready():
    sega_S_sprite =get_node("BG/sega_Letters/SEGA_S")
    
func _process(delta):
    if sega_S_sprite.position.x != sega_S_sprite_end_pos:
        if  sega_S_sprite_time <=0:
            sega_S_sprite.frame +=1```
lethal coyote
#

The whole point or having an animation with key frames or some path following is you don't need to hardcode magic numbers

#

I recall that as the old way of doing this. Is the programmer pulls out some graph paper draws out the desired motion then hardcodes the numbers from the paper he did it on

#

Watch some tutorials on animation in godot. It's really easier then trying to hardcode the motion

patent socket
#

I see... See this is why I wanted to switch off from Clickteam Fusion. You had to hardcode EVERYTHING.

#

Well, let's use animation players then? How would it work that way?

lethal coyote
#

You place the letter in a few spots add it as keyframes along the bounce and let interpolation do the rest. Alternatively you draw a path in the editor and code the letter to follow that path. I can track down a few tutorials if you can't find them. It's sort of a visual thing how you do it most easily explained with a video or screen shots of where to click and descriptions of how to use the mouse and keyboard to getvthe desired results

#

Either way is something you do in godots most helpful editor. It's one of the reasons I love godot. Is the editor