Log in
Search
Latest topics
Moderators
Bio92; SlashDuffIzzyCrazyStunTdouble Crew
Comic Writers: NaturezillaStatistics
We have 15 registered usersThe newest registered user is Pulvarak
Our users have posted a total of 1429 messages in 94 subjects
GML (Game Maker Lang.)
2 posters
CrazyStunTdouble Productions :: Gamers' Retreat :: Game Making Discussion :: Game Maker Help and Tutorials :: Game Maker Tutorials
Page 1 of 1
GML (Game Maker Lang.)
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 >.>
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- Site Admin
-
Number of posts : 638
Age : 29
Location : Boca Raton, FL
Registration date : 2008-07-21
RPG Profile
Health:
(74/100)
Team: : the Blazes
Currency: 1000000
Re: GML (Game Maker Lang.)
is this with lite or pro?
cyberthehedgehog- Lv. 2
- Number of posts : 44
Registration date : 2008-07-22
Brandon- Site Admin
-
Number of posts : 638
Age : 29
Location : Boca Raton, FL
Registration date : 2008-07-21
RPG Profile
Health:
(74/100)
Team: : the Blazes
Currency: 1000000
Re: GML (Game Maker Lang.)
but where do u put the codes O_O *notes i will come here a lot more often*CrazyStunTdouble wrote:lite.
cyberthehedgehog- Lv. 2
- Number of posts : 44
Registration date : 2008-07-22
Re: GML (Game Maker Lang.)
in control, theres a button that says execute code.
Brandon- Site Admin
-
Number of posts : 638
Age : 29
Location : Boca Raton, FL
Registration date : 2008-07-21
RPG Profile
Health:
(74/100)
Team: : the Blazes
Currency: 1000000
Re: GML (Game Maker Lang.)
oh ok thanksCrazyStunTdouble wrote:in control, theres a button that says execute code.
....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
Re: GML (Game Maker Lang.)
well.... im making my kirby game 100% lite (though i wish i could stop that pop-up every time i open GM...)
Brandon- Site Admin
-
Number of posts : 638
Age : 29
Location : Boca Raton, FL
Registration date : 2008-07-21
RPG Profile
Health:
(74/100)
Team: : the Blazes
Currency: 1000000
Re: GML (Game Maker Lang.)
so that means i can make a sonic gameCrazyStunTdouble wrote:well.... im making my kirby game 100% lite (though i wish i could stop that pop-up every time i open GM...)
cyberthehedgehog- Lv. 2
- Number of posts : 44
Registration date : 2008-07-22
Re: GML (Game Maker Lang.)
maybe. idk how you would make the loops, i never tried the path events...
Brandon- Site Admin
-
Number of posts : 638
Age : 29
Location : Boca Raton, FL
Registration date : 2008-07-21
RPG Profile
Health:
(74/100)
Team: : the Blazes
Currency: 1000000
Re: GML (Game Maker Lang.)
ok s now i want to make a kirby minigameCrazyStunTdouble wrote:maybe. idk how you would make the loops, i never tried the path events...
cyberthehedgehog- Lv. 2
- Number of posts : 44
Registration date : 2008-07-22
Re: GML (Game Maker Lang.)
make a topic in the Game Maker Help. This is for questions about the GML, not games.
Brandon- Site Admin
-
Number of posts : 638
Age : 29
Location : Boca Raton, FL
Registration date : 2008-07-21
RPG Profile
Health:
(74/100)
Team: : the Blazes
Currency: 1000000
Similar topics
» My game(name pending lol)
» Game Mode Discussion
» NEW NAME FOR GAME: Kirby: Retaliation!
» The Game Chart of CrazyStunTdouble Productions
» Game Mode Discussion
» NEW NAME FOR GAME: Kirby: Retaliation!
» The Game Chart of CrazyStunTdouble Productions
CrazyStunTdouble Productions :: Gamers' Retreat :: Game Making Discussion :: Game Maker Help and Tutorials :: Game Maker Tutorials
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Wed Sep 10, 2008 7:49 pm by Brandon
» READ. NAO.
Wed Sep 10, 2008 7:21 pm by Brandon
» READ. NAO.
Mon Sep 08, 2008 7:44 pm by Brandon
» new forums almost complete
Thu Sep 04, 2008 9:12 pm by Brandon
» Oh no...
Sun Aug 31, 2008 8:07 pm by Naturezilla
» Official spore topic
Sat Aug 30, 2008 8:52 pm by Bio92
» Frontlines
Wed Aug 27, 2008 6:11 pm by Brandon
» The Game Chart of CrazyStunTdouble Productions
Tue Aug 26, 2008 9:00 pm by Brandon
» NEW DEACTIVATION RULE.
Tue Aug 26, 2008 6:56 pm by Brandon