0 votes

The players in my game are represented by a custom-drawn hexagon. The shape only needs to be drawn once, but obviously it needs to be able to move around the map. But I haven't been able to figure out how to move it without calling update() every frame and redoing all the work. Is there a way to do this?

As a bonus question, when drawing the hexagons the lines don't smoothly connect at the end. Is there a way to fix that?

Godot version v3.5.1
in Engine by (15 points)

1 Answer

0 votes
Best answer

Drawing is a done on 2D nodes. You can draw on the node, then move the node around by changing its position.

by (21,973 points)
selected by

Sure enough, it's working. I swear I already tried this before and it didn't work. I must not have been multiplying it correctly.

Thanks!

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 Frequently asked questions and 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 [email protected] with your username.