CrazyStunTdouble Productions
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Log in

I forgot my password

Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Happy Birthday
GML (Game Maker Lang.) EmptyWed Sep 10, 2008 7:49 pm by Brandon

» READ. NAO.
GML (Game Maker Lang.) EmptyWed Sep 10, 2008 7:21 pm by Brandon

» READ. NAO.
GML (Game Maker Lang.) EmptyMon Sep 08, 2008 7:44 pm by Brandon

» new forums almost complete
GML (Game Maker Lang.) EmptyThu Sep 04, 2008 9:12 pm by Brandon

» Oh no...
GML (Game Maker Lang.) EmptySun Aug 31, 2008 8:07 pm by Naturezilla

» Official spore topic
GML (Game Maker Lang.) EmptySat Aug 30, 2008 8:52 pm by Bio92

» Frontlines
GML (Game Maker Lang.) EmptyWed Aug 27, 2008 6:11 pm by Brandon

» The Game Chart of CrazyStunTdouble Productions
GML (Game Maker Lang.) EmptyTue Aug 26, 2008 9:00 pm by Brandon

» NEW DEACTIVATION RULE.
GML (Game Maker Lang.) EmptyTue Aug 26, 2008 6:56 pm by Brandon

Moderators
Bio92; SlashDuffIzzy
CrazyStunTdouble Crew
Comic Writers: Naturezilla
Statistics
We have 15 registered users
The newest registered user is Pulvarak

Our users have posted a total of 1429 messages in 94 subjects

GML (Game Maker Lang.)

2 posters

Go down

GML (Game Maker Lang.) Empty GML (Game Maker Lang.)

Post by Brandon Thu Jul 24, 2008 9:56 am

Alright, I was up till 12 learning some codes for Game Maker.... though their basics, I still consider it "learning"...

We start with the basics:
k = key. (ex. left, right, up, down)
v = variables. (ex. vspeed/vk_right)
x = horizontal axis in the game. Most likely going to be used for walking.
y = vertical axis in the game. Most likely used for platforming and jumping.
gravity = how fast you fall.
gravity_direction = the direction of the gravity, 270 being the most essential. use slightly higher or lower numbers to create a gust effect (never tested this, just a theory)
speed = how fast an object moves.
obj_[object here] = if your using code, this is the name of your object (no need for the obj_ in front if it doesnt have that in real name)
else = used often after gravity, it's purpose boggles my mind -.-
true = shows a correct statement
false = shows an incorrect statement
---------------------------------------------------

Now we move on to some more intermediate stuff** (some I still dont understand):
keyboard_check = checks if a key has been pressedheld. Most likely having the variable vk_??? after it.
keyboard_check_pressed = checks if a button has been pressed. Most likely having the variable vk_??? after it, and used for things like jumping.
keyboard_check_released = checks if a button has been released. I haven't used this yet so I don't know what it's for.
place_free = asks if given position is free. Use (x,y) for given position.
place_meeting = used when landing.
move_contact = I don't understand this fully, I believe it's for staying on the ground.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
falltimer = how long it takes for object to fall.
canfall = if the object can fall.
falling = if the object will fal
(ex. with falltimer, canfall, and falling)
{canfall = true}
if falltimer < 0 {falling = true}
if canfall = true {falltimer = -1}
I still don't fully get it, but I know if the player hits this object, its gonna fall.

Now, I teach you some codes.

//gravity
if place_free(x,y+1){gravity=.5}
else {gravity=0}
gravity_direction=270

//speed of the character
if vspeed>10{vspeed=10}

//Movement direction
if keyboard_check(vk_right)&& place_free(x+4,y){x+=4}
if keyboard_check(vk_left)&& place_free(x-4,y){x-=4}

//character jump
if keyboard_check_pressed(vk_up)&& !place_free(x,y+1){vspeed=-7}

*idk what the ! is for
**These are my level of skill >.>


Last edited by CrazyStunTdouble on Thu Jul 24, 2008 8:57 pm; edited 1 time in total
Brandon
Brandon
Site Admin

Male
Number of posts : 638
Age : 28
Location : Boca Raton, FL
Registration date : 2008-07-21

RPG Profile
Health:
GML (Game Maker Lang.) Left_bar_bleue74/100GML (Game Maker Lang.) Empty_bar_bleue  (74/100)
Team: : the Blazes
Currency: 1000000

Back to top Go down

GML (Game Maker Lang.) Empty Re: GML (Game Maker Lang.)

Post by cyberthehedgehog Thu Jul 24, 2008 8:47 pm

is this with lite or pro?

cyberthehedgehog
Lv. 2

Number of posts : 44
Registration date : 2008-07-22

Back to top Go down

GML (Game Maker Lang.) Empty Re: GML (Game Maker Lang.)

Post by Brandon Thu Jul 24, 2008 8:56 pm

lite.
Brandon
Brandon
Site Admin

Male
Number of posts : 638
Age : 28
Location : Boca Raton, FL
Registration date : 2008-07-21

RPG Profile
Health:
GML (Game Maker Lang.) Left_bar_bleue74/100GML (Game Maker Lang.) Empty_bar_bleue  (74/100)
Team: : the Blazes
Currency: 1000000

Back to top Go down

GML (Game Maker Lang.) Empty Re: GML (Game Maker Lang.)

Post by cyberthehedgehog Thu Jul 24, 2008 8:57 pm

CrazyStunTdouble wrote:lite.
but where do u put the codes O_O *notes i will come here a lot more often* lol!

cyberthehedgehog
Lv. 2

Number of posts : 44
Registration date : 2008-07-22

Back to top Go down

GML (Game Maker Lang.) Empty Re: GML (Game Maker Lang.)

Post by Brandon Thu Jul 24, 2008 8:59 pm

in control, theres a button that says execute code.
Brandon
Brandon
Site Admin

Male
Number of posts : 638
Age : 28
Location : Boca Raton, FL
Registration date : 2008-07-21

RPG Profile
Health:
GML (Game Maker Lang.) Left_bar_bleue74/100GML (Game Maker Lang.) Empty_bar_bleue  (74/100)
Team: : the Blazes
Currency: 1000000

Back to top Go down

GML (Game Maker Lang.) Empty Re: GML (Game Maker Lang.)

Post by cyberthehedgehog Thu Jul 24, 2008 9:01 pm

CrazyStunTdouble wrote:in control, theres a button that says execute code.
oh ok thanks
....so ur saying its possible to make sonic and kirby games using lite ?
if so then awesome :santa:

cyberthehedgehog
Lv. 2

Number of posts : 44
Registration date : 2008-07-22

Back to top Go down

GML (Game Maker Lang.) Empty Re: GML (Game Maker Lang.)

Post by Brandon Thu Jul 24, 2008 9:03 pm

well.... im making my kirby game 100% lite (though i wish i could stop that pop-up every time i open GM...)
Brandon
Brandon
Site Admin

Male
Number of posts : 638
Age : 28
Location : Boca Raton, FL
Registration date : 2008-07-21

RPG Profile
Health:
GML (Game Maker Lang.) Left_bar_bleue74/100GML (Game Maker Lang.) Empty_bar_bleue  (74/100)
Team: : the Blazes
Currency: 1000000

Back to top Go down

GML (Game Maker Lang.) Empty Re: GML (Game Maker Lang.)

Post by cyberthehedgehog Fri Jul 25, 2008 10:51 am

CrazyStunTdouble wrote:well.... im making my kirby game 100% lite (though i wish i could stop that pop-up every time i open GM...)
so that means i can make a sonic game Very Happy

cyberthehedgehog
Lv. 2

Number of posts : 44
Registration date : 2008-07-22

Back to top Go down

GML (Game Maker Lang.) Empty Re: GML (Game Maker Lang.)

Post by Brandon Fri Jul 25, 2008 12:34 pm

maybe. idk how you would make the loops, i never tried the path events...
Brandon
Brandon
Site Admin

Male
Number of posts : 638
Age : 28
Location : Boca Raton, FL
Registration date : 2008-07-21

RPG Profile
Health:
GML (Game Maker Lang.) Left_bar_bleue74/100GML (Game Maker Lang.) Empty_bar_bleue  (74/100)
Team: : the Blazes
Currency: 1000000

Back to top Go down

GML (Game Maker Lang.) Empty Re: GML (Game Maker Lang.)

Post by cyberthehedgehog Fri Jul 25, 2008 3:59 pm

CrazyStunTdouble wrote:maybe. idk how you would make the loops, i never tried the path events...
ok s now i want to make a kirby minigame

cyberthehedgehog
Lv. 2

Number of posts : 44
Registration date : 2008-07-22

Back to top Go down

GML (Game Maker Lang.) Empty Re: GML (Game Maker Lang.)

Post by Brandon Fri Jul 25, 2008 4:12 pm

make a topic in the Game Maker Help. This is for questions about the GML, not games.
Brandon
Brandon
Site Admin

Male
Number of posts : 638
Age : 28
Location : Boca Raton, FL
Registration date : 2008-07-21

RPG Profile
Health:
GML (Game Maker Lang.) Left_bar_bleue74/100GML (Game Maker Lang.) Empty_bar_bleue  (74/100)
Team: : the Blazes
Currency: 1000000

Back to top Go down

GML (Game Maker Lang.) Empty Re: GML (Game Maker Lang.)

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum