Hi I have a world scene and an enemy scene. The enemy scene is being instanced inside the world scene through codes. My code goes this way:
var enemygen = enemy.instance()
if (summon == false):
summon = true
summon_count = summon_count + 1
var epos = Vector2(500, 50) + get_node("spawnpoint/pipe").get_pos()
enemygen.set_pos(epos)
get_parent().add_child(enemygen)
en_timer.start()
What it does is basically spawning the enemy scene from the right side because that is what my enemy scene's default direction is. Now, what I want for it to happen is for every other spawn, the enemy will move left. Is there anyway to tweak the instanced scenes movement? tried tweaking with singleton but no luck so far. Thank you in advance