How to make doors and buttons without animations?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Keirr Cabales

Every YouTube video that I’ve watched about making doors and levels all have “animation” in them. I tried copying their codes but it seems it doesn’t work if I don’t have an animation for my sprites. Are there any ways to make doors and button without animations?

You should definitely start with more basic tutorials

Inces | 2022-07-10 18:57

:bust_in_silhouette: Reply From: ReudsFratt92

Move them with code to side or whatever you want to do with them.

for r in range(0,10):

But animation would be easier, more elegant and wiser

:bust_in_silhouette: Reply From: pox

Depends, you can use a Tween or some code in process or physics_process to rotate it, scale it or move it. In 3D you can get away with it easily but in 2D it depends on the perspective you’re using.