Hi @SolarLune ,
thank you for your answer - it let me thinking about it and i can now feature out:
You are right - in this code, all is fine...the speed of my objects are similar, notebook and mobilephone.
So i looked at the other codes where the differenzes are and find out:
it is a big diference between the speed in the motion and the timer:
var spawn_time = 25
var spawn_timer = spawn_time
signal armor_changed
func _ready():
add_to_group("ship")
pass
func _process(delta):
var motion = (get_global_mouse_position().x - self.position.x) * 0.2
translate(Vector2(motion, 0))
var view_size = get_viewport_rect().size
self.position.x = clamp(self.position.x, 0+16, get_viewport_rect().size.x-16)
spawn_timer -= 1
if spawn_timer == 0:
spawn_timer = spawn_time
shoot()
pass
In this code, the notebook shoots a lot faster and the motion is faster as on the mobilephone...
But in the same way i found out that i can handle it:
i change the func func _process(delta)
into func _physics_process(delta)
...in my first code this works fine, both have now the same speed...so ill recode the rest of my project to see if it works.
Thank you for this way to thinking,
Neo