• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Relative Commands gm 8.1

D

DantesInferno

Guest
how would I set hspeed as a relative function inside of the gml language. Yes I am still using game maker 8.1
 

Binsk

Member
Absolute:
Code:
hspeed = 10; // Set to ten
Relative:
Code:
hspeed += 10; // Add ten
hspeed -= 10; // Subtract ten

hspeed = hspeed + 10; // Another form of adding ten
hspeed = hspeed - 10; // Another form of subtracting ten
 
D

DantesInferno

Guest
Absolute:
Code:
hspeed = 10; // Set to ten
Relative:
Code:
hspeed += 10; // Add ten
hspeed -= 10; // Subtract ten

hspeed = hspeed + 10; // Another form of adding ten
hspeed = hspeed - 10; // Another form of subtracting ten
thanks
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
I had also made a tool that you can paste text from "Object Information" in, press "GML", and get equivalent code for your DnD.
 
Top