Added in tilemap
This commit is contained in:
1 parent
af1b5267b9
commit
3a5f2d7908
10 files changed
+313
-55
No files matched your search
@@ -46,7 +46,11 @@ func _physics_process(delta):
|
||||
|
||||
#put the bullet at the Marker
|
||||
owner.add_child(myBullet)
|
||||
myBullet.transform = marker_right.global_transform
|
||||
if faceLeft:
|
||||
myBullet.transform = marker_left.global_transform
|
||||
myBullet.setSpeed(-750)
|
||||
else:
|
||||
myBullet.transform = marker_right.global_transform
|
||||
|
||||
# Get the input direction and handle the movement/deceleration.
|
||||
# As good practice, you should replace UI actions with custom gameplay actions.
|
||||
|
||||
Reference in new issue
Block a user