@yayyayyay09 I think the games I make with D&D are good, but like I said, that is easier for me, and I make games for my enjoyment, share them with everyone on Yoyogames, if other people like them, good, if not, oh well, but I'm sure people who know how to use codes and scripts can do a lot more with Game Maker than I can, and make a lot better games, after all, it's just a hobby for me!
That is ok , but the point of scripts is to make your own functions. What you are doing is giving the variables speed and direction a value, which is exactly like using motion_set(direction,speed); Doing it from scratch with x and y is more impressive, as well as including 8 directions. This video should be called: How to make something move with GML.For that it is a neat example, but functions are just something else. You can just code everything in functions, but that isn't the point to them.
if(keyboard_check(vk_up) { speed = 2; direction = 90;
}
You don't need semi colons in GML but it's better to start using them now than to forget them when you start using a more advanced programming language.
I appreciate the tutorial but you don't include how to apply the script within Game Maker. Would have been nice know how to call it with GML in the video
I subscribed and I would like to know how to make an enemy move randomly because I am making a Pac-Man like game. I already have the enemy to destroy the player if he is touched but he just stays still.
To apply the script to an object, create a step event for that object and chose action: Execute Script. It's under the Control tab on the side. Then select that script and you're done.
i know that its easy to sript the movements codes but its alot faster if you just do 4 events and put the codes x-=3 x+=3 y+=3 y-=3 its alot faster trust me
yeah well this is the basis of all scripts i am teaching you and they can get even more complex and you can do more with them but you have to learn. I shall post some more tutorials on scripting is there is enough response.
@joseph3112 you do for 3d games (especially if you've got for example mario 4sprites and 1 left 1right your going to use this)
sprite_index= whatever sprite it is so bassicly you do need codes
tylerfilmproduction1 1 week ago
Good bit i think ill stick to drag and drop
collinbonker 3 months ago
how to put them in game?
unleashed7792 4 months ago
what is the code for key W,A,S,D
can someone tell me that?
HARDSTYLEMYLIVE 5 months ago
plzzz make more its very usefull
lol
jocovaar 6 months ago
you gotta be born with the know-how of scripting if your not then sorry
savelijah 6 months ago
instead of scripting could i just put it directly in code on my player object? thanx!
Snipeshot286 8 months ago
:d MARIO MUSIC AWSOME
rope435 11 months ago
I don't see how all this works or how you know what to type. It's all confusing to me. Explain please?
MadReaperProgram 11 months ago
also super mario galaxy and super mario 64
cpmemberhacker999 1 year ago
original mario music from the lethal lava land LOL
cpmemberhacker999 1 year ago
original mario music from the lethal lava land LOL
cpmemberhacker999 1 year ago
original mario music from the lethal lava land LOL
cpmemberhacker999 1 year ago
@yayyayyay09 I think the games I make with D&D are good, but like I said, that is easier for me, and I make games for my enjoyment, share them with everyone on Yoyogames, if other people like them, good, if not, oh well, but I'm sure people who know how to use codes and scripts can do a lot more with Game Maker than I can, and make a lot better games, after all, it's just a hobby for me!
AllHailKingKurt 1 year ago
It didn't work :(. I'm sure I did everything I was meant to
GU13NA 1 year ago
That is ok , but the point of scripts is to make your own functions. What you are doing is giving the variables speed and direction a value, which is exactly like using motion_set(direction,speed); Doing it from scratch with x and y is more impressive, as well as including 8 directions. This video should be called: How to make something move with GML.For that it is a neat example, but functions are just something else. You can just code everything in functions, but that isn't the point to them.
GGames2009 1 year ago
Don't use 'then', 'and'. Bad habit.
if(keyboard_check(vk_up) { speed = 2; direction = 90;
}
You don't need semi colons in GML but it's better to start using them now than to forget them when you start using a more advanced programming language.
RelentlessRSPS 1 year ago
@RelentlessRSPS
if keyboard_check(vk_up)
speed = 2
direction = 90
GarryIsac 1 year ago
hot top vulcano xD
supemcpc 1 year ago
Never use scripts, always use Gamemakers Drag and Drop, it is easier for me, but you should keep making these videos!
AllHailKingKurt 1 year ago
much better than those other tutorials (:
azerty7190 1 year ago
so scipt is like makeing a movie scipt but your making a game script. hmmm
MrBbarber190 2 years ago
This has been flagged as spam show
How do I link this to the player object?
Zambaku 2 years ago
good tut
BLRender 2 years ago
i was very close to understanding this i had almost all the commands down but this really pushed me into being able to code Thnx a ton man you rock
-Gnomified
Gnomified 2 years ago
what programming language is this?
dualbreathe 2 years ago
GML
DaFleegsta 2 years ago
I appreciate the tutorial but you don't include how to apply the script within Game Maker. Would have been nice know how to call it with GML in the video
whde2000 2 years ago
@whde2000 I understand what you mean. If you are still interested I could clear things up for you...
cheesycrazy 2 years ago
can i have that font?
Cefiay 2 years ago
lOl erub
Barrealster 2 years ago
i want the music
legobatman1 2 years ago
I subscribed and I would like to know how to make an enemy move randomly because I am making a Pac-Man like game. I already have the enemy to destroy the player if he is touched but he just stays still.
AwesomeEraserz 3 years ago
something like this?
collision with wall:
direction=choose(0,90,180,270)
blackhawkrobbo 3 years ago
hahah i can steal tha music.
thanks nice music i want to upload with nice video tha music thanks thanks
mariosxoox 3 years ago
i subscribed you... i thank u for the support but i got many questions...
how do u chose which person moves.....?
how do i make action after somebody touched that?
lots of question but i wont bug you....
5/5 XD
raiders510halo223333 3 years ago
demokiller14, I think you're right.
Nice video!
Buggy793 3 years ago
what if i hold a buttom?
raiders510halo223333 3 years ago
i scripted just like you said in the video but my little spot just move right , im a noob sorry :D..but i did just what you said
Zejtan 3 years ago
it didnt work
maniacdeadboy 3 years ago
how do you apply the script to an object?
chewanater 3 years ago
To apply the script to an object, create a step event for that object and chose action: Execute Script. It's under the Control tab on the side. Then select that script and you're done.
sbfanatic62 3 years ago
hey can any one help me with coloring objects in game maker 7
DeamonHacker 3 years ago
this is just the basics to show how scripting works
cheesycrazy 3 years ago
add another and to the end of each line (apart from else) and then add sprite_index=(sprite name goes here). That should work
cheesycrazy 3 years ago
its the same but -90 is easyier to remember for me
cheesycrazy 3 years ago
i know that its easy to sript the movements codes but its alot faster if you just do 4 events and put the codes x-=3 x+=3 y+=3 y-=3 its alot faster trust me
fattyfattyx 3 years ago
whats the point of scripting? what does it do?
johnmotox11871 3 years ago
it gives you more flexibility for game making, this is just showing the very basics
cheesycrazy 3 years ago
Thanx, very Helpful :)
joshrocks314 3 years ago
Super mario galaxy music !
valitini 3 years ago
lol
pokerockmario123 3 years ago
hey its so much esair to make them in a step event.
urbansports1 3 years ago
in what kind of file u need to save it??
is it possible to .vbs?? or .exe?
Please Response!!!
THX
alarmcentra 4 years ago
sorry i dont know what you mean?
cheesycrazy 3 years ago
is it also possible to make a game like that simply in notepad?
alarmcentra 3 years ago
is it also possible to make a game like that simply in notepad?
alarmcentra 3 years ago
no thats not the same. you cannot make a game maker game in notepad
cheesycrazy 3 years ago
no thats not the same. you cannot make a game maker game in notepad
cheesycrazy 3 years ago
very well, still have a lot of problems with scripts... lol
hyena222 4 years ago
yeah well this is the basis of all scripts i am teaching you and they can get even more complex and you can do more with them but you have to learn. I shall post some more tutorials on scripting is there is enough response.
cheesycrazy 3 years ago
thanks :)
Freakdeep2007 4 years ago
oh comme on!
cheesycrazy 4 years ago