More Xbox 360 plus other stuff. Which means a tip on how to make an object move around.

March 22, 2006 at 4:17 am (Game Maker, Off topic, Uncategorized)

Okay.

Tonight’s the night. there’s a midnight release, and I’m going to go. I can’t wait. i think I might miss a little of school, however, I do have a test tomorrow, so I do have to think about it.

Anyway, I’m going to tell you how to do something else with gamemaker.

I’m going to tell you how to make a creature walk around in a circle.

First, A sprite would help.

Then, create an object with that sprite.

In the [create] event, set alarm2 for an amount of time (something like I dunno 90 steps), and set the direction to up (or 90) Also, set the speed to something reasonable like 5.

Then, In the [alarm2] event, change the direction to either left or right (or 0/180) , and set the next alarm (alarm3) for the same amount of time as the previous one. Also keep the speed the same.

In [alarm3] event, change the direction to down (270) and keep the speed the same. Set alarm4 to the same amount of time as the previous one.

In [alarm4] event, change the direction again to the last remaining direction which would left if you chose right first, and right if if you chose left first. Keep the speed constant. Then, set alarm1 (ahh, you think, there it is!) to the same as the ones before it.

Finally, in alarm 1, copy tyhe evnts you had in the create event,and paste them. This should make an eternal loop that causes the object to go in a square forever. And that’s a simple example of how to use alarms.

Okay, Hope that helps you make… I dunno, some sort of game.

Advertisements

1 Comment

  1. Bill Kerr said,

    wonderful tip, creative because I’ve never explained anything like this to you

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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: