Problem Five

Problem: Make one object follow another object   

Solution: 

For the ball that is leading the other ball: 
Create Event: set speed to 2 and direction to random(360)
Other Event: Outside Room: move to a random position with hor snap 0 and vert snap 0

For the ball that is following:
Step Event: start moving in the direction of position (spr_ballblue.x,spr_ballblue.y) with speed 2

Advertisement

Leave a Comment

Filed under GameMaker

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s