Game Maker Questions Topic!!!

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

Re: Game Maker Questions Topic!!!

Postby spookyghost » July 22nd, 2010, 9:21 am

Code: Select all
        if (roomwidth(x)>0) {


Whats wrong with this code?
I want to check the x(room_width) is greater then 0.
Image
thanks oj/bamarino
User avatar
spookyghost
Code: Awesome

 
Posts: 454
Joined: August 23rd, 2009, 12:18 pm
Location: Enlightenment

Thumbs Up given: 10 times
Thumbs Up received: 17 times

Re: Game Maker Questions Topic!!!

Postby Suyo » July 22nd, 2010, 9:25 am

...what?

Do you mean the x of the 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 Questions Topic!!!

Postby spookyghost » July 22nd, 2010, 9:32 am

Yes.
Ussually in D&D, you use the Variable object, and type "x(room_width)" Then fill out the values.
Image
thanks oj/bamarino
User avatar
spookyghost
Code: Awesome

 
Posts: 454
Joined: August 23rd, 2009, 12:18 pm
Location: Enlightenment

Thumbs Up given: 10 times
Thumbs Up received: 17 times

Re: Game Maker Questions Topic!!!

Postby Suyo » July 22nd, 2010, 11:05 pm

It'S only x.

Lrmaster132 wrote:
Code: Select all
        if (x>0) {
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 Questions Topic!!!

Postby marioisawesome » August 15th, 2010, 4:07 pm

How do i make power ups for super mario galaxy 2d work? I don't know how to make power-ups please help!
THE AMAZING, SPECTACULAR marioisawesome
ALSO KNOWN AS terracrafter
ADD ME AS A MARIO KART WII FRIEND!!!
3310-7336-8800
Add me if you want to be able to play the Galaxy Arena course ANYTIME, ANYWHERE!!!
It's only been played Thrice.
User avatar
marioisawesome
Mage's Apprentice

 
Posts: 32
Joined: May 21st, 2010, 9:19 pm
Location: A Magical Place Made From Magical Cookies!!! AKA Australia

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

Re: Game Maker Questions Topic!!!

Postby General Guy 101 » August 15th, 2010, 4:48 pm

Did you at least make the sprites for the power-ups >_>
Super Smash Bros. Brawl Tourney 2 Banner: show
Image

Spoiler: show
THINGS Never change
Join my forums
He just had a spotaneus
JIZZ
IN his
Pants
He can be serious about this

Mods Secret Watching Place (Thats why there watching you)
My soon-to-be Avatar
Luigi:Hey goombas geuss what
Goombas:What?
Luigi:Its Hammering time
Join justn.p3's Now :)
Guess what....................Were no strangers to love.You're lucky I forgot the rest of this song
Call Me TFMOR Which stands for The Forgotten Member Of Runouw

This smilie is a non-stopping Face slapping for a lifetime Smilie :facepalm:
Join the:
IMMA A VETERAN MAY 28th 2010 in less then a month
Quotes of other members 2: show
NG64 wrote:Im bat man
Kimonio wrote:But Bat Man doesn't wear a cowboy theme..unless he want's to be stlyish
MIC wrote:No he doesn't wear a cowboy theme

HAIL TO THE LEGENDARY MEMBER....WAIT I'M NOT A MEMBER OF IT I"LL JUST START HAIL TO THE LEGENDARY 24

My new awesome Banner :awe:: show
Image


Scientist wrote:Just Cause it looks like a donut doesn't mean it's a donut
2nd Scientist wrote:*Chomp*

Current Rank in COD:
Sergant I

I just started about 2 days ago :awe:
Image
User avatar
General Guy 101
Code: Awesome

 
Posts: 371
Joined: May 5th, 2010, 1:39 pm
Location: Past,Present,Future

Thumbs Up given: 0 times
Thumbs Up received: 1 time

Re: Game Maker Questions Topic!!!

Postby Suyo » August 16th, 2010, 12:24 am

Make a global variable called powerup, and if it's set to a certain number you can do x. Use a if structure.
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 Questions Topic!!!

Postby marioisawesome » August 16th, 2010, 1:40 am

Nintendogeek said:
Did you make spties for the power ups?

Yeah of course but i'm looking for someone to help make some more for me.
SuperYoshi said: Something something global something x something.

Well i don't know what that means please help me with FULL explanations.
THE AMAZING, SPECTACULAR marioisawesome
ALSO KNOWN AS terracrafter
ADD ME AS A MARIO KART WII FRIEND!!!
3310-7336-8800
Add me if you want to be able to play the Galaxy Arena course ANYTIME, ANYWHERE!!!
It's only been played Thrice.
User avatar
marioisawesome
Mage's Apprentice

 
Posts: 32
Joined: May 21st, 2010, 9:19 pm
Location: A Magical Place Made From Magical Cookies!!! AKA Australia

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

Re: Game Maker Questions Topic!!!

Postby Suyo » August 16th, 2010, 1:52 am

You have two objects, PLAYER and POWERUP.

POWERUP:
If the POWERUP collides with the PLAYER, it should destroy itself and set the global variable global.powerup to 1.

PLAYER:
You create an if structure:
Code: Select all
if (global.powerup == 1) {
   // what happens if powerup is collected
   } else {
   // if powerup is not collected...
   }


And in the create event you write:
Code: Select all
global.powerup = 0


~done~
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 Questions Topic!!!

Postby marioisawesome » August 16th, 2010, 10:10 pm

Where do i put the code?
You used codes to explain where do i put them? :geek:
THE AMAZING, SPECTACULAR marioisawesome
ALSO KNOWN AS terracrafter
ADD ME AS A MARIO KART WII FRIEND!!!
3310-7336-8800
Add me if you want to be able to play the Galaxy Arena course ANYTIME, ANYWHERE!!!
It's only been played Thrice.
User avatar
marioisawesome
Mage's Apprentice

 
Posts: 32
Joined: May 21st, 2010, 9:19 pm
Location: A Magical Place Made From Magical Cookies!!! AKA Australia

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

PreviousNext

Return to Programming