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 Blablob » March 21st, 2010, 12:26 pm

LUIGIMAN >:0 wrote:I need a little help about the lagging in the game

What game?
User avatar
Blablob
Content for Contempt

 
Posts: 3108
Joined: September 6th, 2009, 3:38 pm
Location: That way

Credit To Team

Thumbs Up given: 67 times
Thumbs Up received: 229 times

Game Maker 8 Code Help

Postby spookyghost » April 29th, 2010, 6:15 pm

I need some help with code.
I'm making a 32x32 tile based game, and I have a Object that I want to be an AI.
So, who has a code that will make it go in any direction random and keep going in a different direction randomly?
I used:
Code: Select all
direction = random(360)

But no luck.
What is wrong with the code?
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 » April 29th, 2010, 11:25 pm

Eh, wut?

Do you mean it should change direction randomly and then keep going for some time?

Code: Select all
if (floor(random(ANYNUMBER))+1 == 1) {
 direction = random(360)
 }
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 » April 30th, 2010, 6:08 am

Thanks, I'll try that code soon.
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 Zunar » May 1st, 2010, 11:49 am

need help. Here's my problem. I'm making a game with Link and I want an enemy to lose health when he attacks with his sword. I have a sprite for that, but how do I make it where the enemy loses health when struck by Link's sword?
User avatar
Zunar
Honorary Member

 
Posts: 1838
Joined: August 1st, 2009, 4:50 pm
Location: In the shadows, where you'll never find me.

Thumbs Up given: 14 times
Thumbs Up received: 51 times

Re: Game Maker Questions Topic!!!

Postby agentms11 » May 2nd, 2010, 10:57 am

Zunar wrote:need help. Here's my problem. I'm making a game with Link and I want an enemy to lose health when he attacks with his sword. I have a sprite for that, but how do I make it where the enemy loses health when struck by Link's sword?

Code or D&D?
And are you using the built-in health function?
And do you have a separate object for the "attacking" Link?
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 Questions Topic!!!

Postby Zunar » May 3rd, 2010, 4:37 pm

agentms11 wrote:Code or D&D?

Doesn't matter.
agentms11 wrote:And are you using the built-in health function?

What do you mean?
agentms11 wrote:And do you have a separate object for the "attacking" Link?

No.
User avatar
Zunar
Honorary Member

 
Posts: 1838
Joined: August 1st, 2009, 4:50 pm
Location: In the shadows, where you'll never find me.

Thumbs Up given: 14 times
Thumbs Up received: 51 times

Re: Game Maker Questions Topic!!!

Postby Zed98 » May 4th, 2010, 3:01 pm

I want to make a Sonic game where Sonic and Tails must battle enemys. Can you help me?

Code or Drag and Drop will work.

1. How do I make an overworld area like the ones in MLSS?

2. How do I get Sonic and Tails to dodge attacks?? (Works like MLSS battles)

3. How do I get the player to choose an attack for Tails after Sonic Attacks?

4. How do I get the player to choose an attack for Sonic after they dodge an attack?(Works like MLSS battles)

5. Can you how to make HP for BOTH Sonic, tails, and the enemies?
Zed98

Well, I don't appear too often, but I'm still alive!
User avatar
Zed98
The Legacy

 
Posts: 744
Joined: September 22nd, 2009, 1:17 pm
Location: Somewhere in the United States of American

Thumbs Up given: 11 times
Thumbs Up received: 4 times

Re: Game Maker Questions Topic!!!

Postby spookyghost » July 21st, 2010, 7:52 pm

I cannot find ANY tutorial for coding, just for D&D, please point one out someone D:
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 21st, 2010, 10:10 pm

F1

:awe:

No seriously, the help file is the best coding tutorial. It explains everything indepth.
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

PreviousNext

Return to Programming