#I'm doing a game in java.

5 messages · Page 1 of 1 (latest)

willow hemlock
#

it's a 2d game, I have an npc that moves forward and backward (on the x so right and left) in a certain space, I would like it to move at random, (not changing direction only when it touches a border) and so on, an always different pattern of movement, obviously remaining in the edges. What it actually does is get to the left edge and back, get to the right edge and turn around, and so on.
PS. I forgot, I want that it turns right/left randomly but sometimes stop walking too, maybe for a second.

thorn deltaBOT
#

This post has been reserved for your question.

Hey @willow hemlock! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

hexed bronze
#

what exactly is your question?

thorn deltaBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.