0 votes

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).

in Projects by (403 points)

1 Answer

0 votes
by (200 points)

Do I really have to use Path2D ? I was just wondering if I can use some code involving trigonometric functions and stuff.

Oh.. do whatever you wish to do.. you of course may use some trigonometry if you want.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.

Categories