Hello community !
Need for help again )
I need to make a a thing for node script, like:
#for example i click a button
func _on_button_show():
x=1
vect=-1
max=0
set_process(true)
#set a variables for animation
func _process(delta):
x+=0.01*vect
self.modulate.a=x
if x+max>=self.modulate.a:
set_process(false)
#then i click another button
func _on_button_move():
x=1000
speed = 0.002
#set a variables for moving
And then i should set a function for moving, like another process function. But how ?
Can i make process function but with another naming ?
Like:
set_movefunc(true)
set_alphafunc(true)
Or i need to divide _process into parts ?
Really thank you for help )