Page 1 of 2

Game Maker help

PostPosted: December 12th, 2009, 8:08 pm
by agentms11
Whoever it was that made that "update SM63" game, how did you make the timer???
I'm making a game and I'm having trouble with it.
So...help?

Re: Game Maker help

PostPosted: December 15th, 2009, 11:49 am
by brandoprojectm
Um..."update sm63"?

Could you please be more specific?

Re: Game Maker help

PostPosted: December 15th, 2009, 4:49 pm
by agentms11
I think it was when we were in the old forums, someone made a game called "Update Super Mario 63". It was basically a game that there was a button that said "update" that ran away from your mouse and you had to try to click it. Then it told you how long it took you to click it. I was wondering how the person made the timer in that game.

Re: Game Maker help

PostPosted: December 15th, 2009, 5:55 pm
by samgamereviews
I don't remember GM that much since I switched to mac, but

To make the moving object, you could either
1. Make it move in a random direction and just have it bounce off the walls
a. make an object thats a wall and put it all around the room
b. Make an event for the object I think theres something like a "bounce off object" event. Just try pressing buttons you'll get something :)
2. You could make the object move in random spots by making a step event
a. in the step event you could make an event that says move to a random position (theres an event for that)
3. I'm not sure how to make it move away from the mouse


For the timer, you could
1. Make an object
2. Do something like: Make a step event
3. Under the step event, make something like: Every X steps add 1 to score/variable/whatever
4. Then: collision event with the mouse (or upon mouse click) stop adding score
a. I'm not that great at gm so I would usually destroy the object so the score stops going up.

Hope that helps!
Just experiment! Keep on trying to do different things!

Sorry if thats confusing...

Re: Game Maker help

PostPosted: December 15th, 2009, 6:58 pm
by agentms11
I already did mine.
The way I did it was like this.

  • I set the room speed to 100.
  • In the "Create" event I set alarm0 that goes off in one step.
  • In event "Alarm0": set the score to one point relative, and set alarm0. This makes it add one point every millisecond.
So I have a timer in the score, which is good cuz then I can use highscores.
Gettit?

Re: Game Maker help

PostPosted: December 21st, 2009, 3:05 pm
by samgamereviews
yeah, I don't have GM anymore, but i'm sure that would work better than mine.

Re: Game Maker help

PostPosted: December 21st, 2009, 5:29 pm
by agentms11
...Will the one who made the "Update SM63" game please reveal himself???
I want to know how you did the timer.
please.

Re: Game Maker help

PostPosted: December 26th, 2009, 6:44 am
by Suyo
It was me.

And it's simple as hell.

Step Event:
Code: Select all
timer += 1       ;increase timer by 1


Wherever the game ends:
Code: Select all
show_message("Super Mario 63 was updated.")
show_message("You updated it in "+string(timer/room_speed)+" seconds.")


Fun fact: this game consists only out of one object.

Re: Game Maker help

PostPosted: December 26th, 2009, 9:42 am
by samgamereviews
Superyoshi your back! :D I don't know code at all so I couldn't even figure that out.

Re: Game Maker help

PostPosted: May 21st, 2010, 7:16 pm
by Re4p3r 666
hey guys. And thanx for posting this, AM11, having some of the same kind of trouble.