system
1
|
|
|
|
Attention |
Topic was automatically imported from the old Question2Answer platform. |
|
Asked By |
Scavex |
Hello guys, I was wondering how I can make the bullets travel in some fancy patterns ? For example right now in my bullet script I have :
extends Area2D
export var speed = 500
func _physics_process(delta):
position.y -= speed*delta
pass
As evident this is just making my bullets go in a straight line. What can be done to make them go in a wave pattern (Spiraling etc).
system
2
|
|
|
|
Reply From: |
Reloecc |
https://kidscancode.org/godot_recipes/ai/path_follow/
Do I really have to use Path2D ? I was just wondering if I can use some code involving trigonometric functions and stuff.
Scavex | 2020-09-15 08:55
Oh… do whatever you wish to do… you of course may use some trigonometry if you want.
Reloecc | 2020-09-15 09:02