Game Maker help

Need programming help? Want to post programming tips? Are you programming a game and want to show it off? That and more here.

Game Maker help

Postby agentms11 » December 12th, 2009, 8:08 pm

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?
BROCCOLI TASTES LIKE CHICKEN!
YEAH!


NOW FOR... ARTEMIS FOWL!!!!
ImageImageImageImageImage
User avatar
agentms11
As Ninja As Myst

 
Posts: 138
Joined: August 1st, 2009, 5:13 pm

Thumbs Up given: 0 times
Thumbs Up received: 0 times

Re: Game Maker help

Postby brandoprojectm » December 15th, 2009, 11:49 am

Um..."update sm63"?

Could you please be more specific?
Just remember this, when you see her on the street.

I'm the cruelest girl you'll ever meet.
User avatar
brandoprojectm
Prophet of Shadowsquid

Error contacting last.fm
 
Posts: 1467
Joined: August 1st, 2009, 6:44 pm
Location: ...

Thumbs Up given: 12 times
Thumbs Up received: 159 times

Re: Game Maker help

Postby agentms11 » December 15th, 2009, 4:49 pm

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.
BROCCOLI TASTES LIKE CHICKEN!
YEAH!


NOW FOR... ARTEMIS FOWL!!!!
ImageImageImageImageImage
User avatar
agentms11
As Ninja As Myst

 
Posts: 138
Joined: August 1st, 2009, 5:13 pm

Thumbs Up given: 0 times
Thumbs Up received: 0 times

Re: Game Maker help

Postby samgamereviews » December 15th, 2009, 5:55 pm

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...
fourinone wrote:I'M YOUR FATHER!
samgamereviews wrote:Which one?
fourinone wrote: :shock:

Don't worry I have 1 dad.
When there is no way out, blame the economy.


Joke-Off Tournament Semifinalist!

Image
Image
User avatar
samgamereviews
Code: Awesome

 
Posts: 259
Joined: August 2nd, 2009, 8:32 am
Location: Turn around......

Thumbs Up given: 0 times
Thumbs Up received: 2 times

Re: Game Maker help

Postby agentms11 » December 15th, 2009, 6:58 pm

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?
BROCCOLI TASTES LIKE CHICKEN!
YEAH!


NOW FOR... ARTEMIS FOWL!!!!
ImageImageImageImageImage
User avatar
agentms11
As Ninja As Myst

 
Posts: 138
Joined: August 1st, 2009, 5:13 pm

Thumbs Up given: 0 times
Thumbs Up received: 0 times

Re: Game Maker help

Postby samgamereviews » December 21st, 2009, 3:05 pm

yeah, I don't have GM anymore, but i'm sure that would work better than mine.
fourinone wrote:I'M YOUR FATHER!
samgamereviews wrote:Which one?
fourinone wrote: :shock:

Don't worry I have 1 dad.
When there is no way out, blame the economy.


Joke-Off Tournament Semifinalist!

Image
Image
User avatar
samgamereviews
Code: Awesome

 
Posts: 259
Joined: August 2nd, 2009, 8:32 am
Location: Turn around......

Thumbs Up given: 0 times
Thumbs Up received: 2 times

Re: Game Maker help

Postby agentms11 » December 21st, 2009, 5:29 pm

...Will the one who made the "Update SM63" game please reveal himself???
I want to know how you did the timer.
please.
BROCCOLI TASTES LIKE CHICKEN!
YEAH!


NOW FOR... ARTEMIS FOWL!!!!
ImageImageImageImageImage
User avatar
agentms11
As Ninja As Myst

 
Posts: 138
Joined: August 1st, 2009, 5:13 pm

Thumbs Up given: 0 times
Thumbs Up received: 0 times

Re: Game Maker help

Postby Suyo » December 26th, 2009, 6:44 am

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.
Image

Image

Image

Image

Image

Image
User avatar
Suyo
"quite easily the most manly man of all" --Raz

Error contacting Twitter
Error contacting last.fm
 
Posts: 2771
Joined: July 28th, 2009, 2:41 am
Location: Nuremberg (Germany)

Runouw Votes Winner
For winning the RV New Year 2012 Award for Best Moderator. Like you didn't know. XD

Thumbs Up given: 26 times
Thumbs Up received: 359 times

Re: Game Maker help

Postby samgamereviews » December 26th, 2009, 9:42 am

Superyoshi your back! :D I don't know code at all so I couldn't even figure that out.
fourinone wrote:I'M YOUR FATHER!
samgamereviews wrote:Which one?
fourinone wrote: :shock:

Don't worry I have 1 dad.
When there is no way out, blame the economy.


Joke-Off Tournament Semifinalist!

Image
Image
User avatar
samgamereviews
Code: Awesome

 
Posts: 259
Joined: August 2nd, 2009, 8:32 am
Location: Turn around......

Thumbs Up given: 0 times
Thumbs Up received: 2 times

Re: Game Maker help

Postby Re4p3r 666 » May 21st, 2010, 7:16 pm

hey guys. And thanx for posting this, AM11, having some of the same kind of trouble.
User avatar
Re4p3r 666
As Ninja As Myst

 
Posts: 239
Joined: October 25th, 2009, 12:13 pm
Location: as far away from YOU as possible!

Thumbs Up given: 0 times
Thumbs Up received: 0 times

Next

Return to Programming