Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411507 Posts in 69374 Topics- by 58429 Members - Latest Member: Alternalo

April 26, 2024, 04:44:33 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Game Maker For Beginners: Part I
Pages: 1 2 3 [4] 5 6 ... 11
Print
Author Topic: Game Maker For Beginners: Part I  (Read 327321 times)
muku
Level 10
*****


View Profile
« Reply #60 on: October 17, 2008, 06:34:38 PM »


I don't get the big fuss about decompilers.
Ask that to the guys who did Katakujin or Gang garrison 2 and got their games hacked and released by somebody else.

I did mention that that's an example of improper use, no? Did you read my post at all? Some people are just going to be dicks. I was also the first to express my disagreement with that practice in the GG2 thread (only to be ridiculed by the vast majority there).

What's that about Katakijin though? I never heard about it being hacked.
Logged
KniteBlargh
Level 4
****


Blargh...


View Profile WWW
« Reply #61 on: October 19, 2008, 08:15:44 AM »

Thanks so much for this tutorial Derek! Looking forward to the next one.
Logged

The-Imp
Guest
« Reply #62 on: October 19, 2008, 03:56:01 PM »

Thanks so much for this tutorial Derek! Looking forward to the next one.
As am I... Beer!
Logged
cyprien
Guest
« Reply #63 on: October 21, 2008, 05:37:40 PM »

I don't know if this is the best place to post this, but I didn't feel it needed it's own thread since you have this great GM one already rolling.

The issue I'm currently facing is producing objects at random within certain boundaries.
Code:
For example: 288 > x < 32

I'm just not sure how to go about writing that out in GML. =\

So far for my create_instance is as follows:
Code:
instance_create(random(288), random(224), oMid);

Any help is appreciated. =)

Logged
GregWS
Level 10
*****


a module, repeatable in any direction and rotation


View Profile
« Reply #64 on: October 21, 2008, 05:48:17 PM »

For stuff like this just create a new thread in Technical.

But to quickly answer your question, what I've always done is generate a random number using the difference of the bounds as the range, and then add the lower bound to the random value that had been generated.
Logged
___
Vice President of Marketing, Romeo Pie Software
Level 10
*


View Profile
« Reply #65 on: October 21, 2008, 10:49:09 PM »

I don't know if this is the best place to post this, but I didn't feel it needed it's own thread since you have this great GM one already rolling.

The issue I'm currently facing is producing objects at random within certain boundaries.
Code:
For example: 288 > x < 32

I'm just not sure how to go about writing that out in GML. =\

So far for my create_instance is as follows:
Code:
instance_create(random(288), random(224), oMid);

Any help is appreciated. =)



would random(288-32)+32 work?
Logged
GregWS
Level 10
*****


a module, repeatable in any direction and rotation


View Profile
« Reply #66 on: October 21, 2008, 10:50:21 PM »

I'm pretty sure that's what I said; mine was just in a far more convoluted form.  Roll Eyes
Logged
___
Vice President of Marketing, Romeo Pie Software
Level 10
*


View Profile
« Reply #67 on: October 21, 2008, 11:14:46 PM »

I'm pretty sure that's what I said; mine was just in a far more convoluted form.  Roll Eyes

Oh whoops.  Sorry, haha.  Beer!
Logged
GregWS
Level 10
*****


a module, repeatable in any direction and rotation


View Profile
« Reply #68 on: October 21, 2008, 11:24:52 PM »

No worries; clarification is never bad; yours made infinitely more sense anyway.  Beer!
Logged
Derek
Bastich
Administrator
Level 10
******



View Profile WWW
« Reply #69 on: October 22, 2008, 01:54:02 AM »

If you want a simple script you can pop into your game and use over and over:

Code:
n = argument1 - argument0 + 1;
return floor(random(n)) + argument0;

If you call the script "rand," then "rand(1,10)" will return a random variable between 1 and 10 (inclusive). Smiley
Logged
cyprien
Guest
« Reply #70 on: October 22, 2008, 03:48:43 AM »

Thanks for suggestion Derek, I'll make sure to save that script. =)
Logged
___
Vice President of Marketing, Romeo Pie Software
Level 10
*


View Profile
« Reply #71 on: October 23, 2008, 06:15:38 PM »

This tutorial kick started me on making stuff in game maker and I think I'm in love.  Scripting is so delicious....
Logged
Matt Thorson
Level 7
**

c'est la vie


View Profile WWW
« Reply #72 on: October 23, 2008, 06:47:03 PM »

This tutorial kick started me on making stuff in game maker and I think I'm in love.  Scripting is so delicious....

Join us Evil

Yeah, GM rocks.  It has plenty of flaws, but it's still just plain awesome for letting you very quickly and easily transplant an idea from your brain to your monitor.
Logged

acidBatterie
Guest
« Reply #73 on: October 23, 2008, 10:02:13 PM »

GM pisses me off everyday whenever i can't ZOOM  WTF  other then that, yeah, scripting is awsomssss
Logged
GregWS
Level 10
*****


a module, repeatable in any direction and rotation


View Profile
« Reply #74 on: October 23, 2008, 10:09:04 PM »

it's still just plain awesome for letting you very quickly and easily transplant an idea from your brain to your monitor.
I couldn't have said it better myself!  Beer!
Logged
Skofo
Level 10
*****



View Profile
« Reply #75 on: October 26, 2008, 12:25:41 PM »

ew gamemaker lol.
Logged

If you wish to make a video game from scratch, you must first invent the universe.
Matt Thorson
Level 7
**

c'est la vie


View Profile WWW
« Reply #76 on: October 27, 2008, 04:53:42 PM »

ew gamemaker lol.

Elaborate.
Logged

ஒழுக்கின்மை (Paul Eres)
Level 10
*****


Also known as रिंकू.


View Profile WWW
« Reply #77 on: October 27, 2008, 05:07:14 PM »

An elaboration:

ewwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww gamemaker looooooooooooooooool
Logged

december
Level 1
*



View Profile
« Reply #78 on: October 27, 2008, 05:26:35 PM »

Further elaboration:  YoYoGames, more like LOLOLGames amirite?
Logged

Signature:
Signatures are displayed at the bottom of each post or personal message. BBC code and smileys may be used in your signature.
ஒழுக்கின்மை (Paul Eres)
Level 10
*****


Also known as रिंकू.


View Profile WWW
« Reply #79 on: October 27, 2008, 05:48:24 PM »

I remember that Derek quote! It was "NoMoGames", haha. That was when the site was too slow to download anything and had that weird bug that prevented many people from downloading games. It still has that bug, even though that quote is over a year old.
Logged

Pages: 1 2 3 [4] 5 6 ... 11
Print
Jump to:  

Theme orange-lt created by panic