:D Thanks you a tonz!!! I really needed a tut like this since using the Spring Engine failed. When I'm finished making my RTS, I'll put chu in the credits for this tutorial :D CHUR A LIVE SAVER!!!
first of my worker walked and turned as it is supposed to do but then wen i rotated it it stoped turning and now i rotated it back and it does not work help :(
just a tip: 1:20 when you say that you need to make it as centered as possible you can just crop it:edit sprite/transform/crop || and crop it to 0 and then center it
@MrCheifzor Check the = signs. Also gml is based of Delphi, so it doesn't follow all of C logic or syntax rather so maker sure you put = instead of == like in C Languages.
uhh...fancypenguins, i really need help... when i want to test the game, it said "cannot find the required dlls"i dont know what i missed so if you have time please help me. thanks
@Destinyawe In order to use the code methods in the video you need pro 8.0 or standard 8.1 which is the new name for pro. I have videos on how to get both free.
@MrTacticalGaming Will what cost money? The program can be bought for $40 now or you can get a cracked version, i have two video for this. This series uses version 8.0 not 8.1
@dxxanthony so the true/false argument is answering the question "do i go around all objects?" so make sure that it isn't surrounded by objects. Also you can keep it false, just so long as all the objects the ship can't collide with are solid.
@RtsRpgFpsGameNerd Sounds like a gamemaker problem, make sure that you have pro, make sure it's installed correctly and make sure you have a room to run.
i have everything down that you did but one thing.... when i click, it actually looks when the mouse clicks buuuuuutttt it moves really weird. and it wont go below like an inch of the game screen.
@lisn92 Its hard to say because your line 4 is blank, look at line 4 and 5 and see if their is a variable that wasn't initialized(never given a value) its a problem where you're checking for something that isn't their yet, so either take that variable and in the create event have variable = 0; or goto global game settings>errors tab>treat uninitialized variables as zero.
@fancypenguins thanks but it was becuase i put a bracket and not } lol, im finding your tutorials very usefull for a game me and my mate are making, good job btw :P
@rirox399 ok basically just pres enter after the first hash and make the "M" in mp_potential_step(desx,desy,4,true); almost directly under the o in moving :D
@Fufu988 Go to video 30 or 25 both have the same link in the desc. to the .gmk, anything in it can be used, graphics code sounds ect. It's from yoyogames so it's safe.
@Fufu988 I don't have just part 1, you can get the updated code or follow along as best as possible, it wasn't until part 16 where i got camtasia and zoomed in on the code enough, sorry.
i tried to make another game and i followed your EXACT tutorial and it still does it, this time it doesnt go to the top of the screen it just makes random movements and doesnt follow my mouse cursor...please help!
HI it would be great if you could help me....when i am on the game, i click to move my worker as you show...and my worker just goes off to the top of the screen and makes random movements but wont move from there. How do i change it? ive written all of the codes in correctly and everything. P.s your videos are great!! Thankyou! Please get back to me! thanks.
@courtlandsr In gamemaker, not well. Gamemaker uses personal IP addresses to connect online, so if you don't have the persons IP you can't play with them. However, if you made a server, stored IPs and made players create accounts and gave the IPs associated with the usernames in the background so it's safe you might be able too. This would require a network programmer and money though.
Mabye for the sake of confusion you should put the lines of code in the description - i know it would take longer but i and many other people would like it... Apart from that great vid i liked and suscribed :)
@Mrbenybob Thanks for subbing. I keep forgetting to add that you can download the source code for these videos in an annotation/link in the desc. it allows me to do less work and you to look at read and use all of the scripts and images in these videos. As of right now the link is in part 25 and 30 but i'll add it to all videos shortly.
@ConvertMusic Great, just remember this engine in top-down while Starcraft is 2.5D so you'll have to do some coding changes later and at first it won't look right.
@itzAdream Sorry busy day yesterday. You forgot to put the variable, the error messages in GM are really great, they tell you exactly what's wrong and where it is. Look back in the video at the step event for object worker in line 4 at position 1. All of that was just putting the error code in sentence form.
If you still need help PM me it's easier to get into detail with PMs and i respond to PMs before i read comments.
im having a problem, when i start the game and press the left button the worker will rotate to where the mouse is but it wont move. i have looked for programing error but it is allgood any ideas???
@lordaeron115 check the code to see if everything is exact, some common mistakes are putting ( where { should be, and not having the right spelling/code for the mp_potential_step function
@TheBlackVikingPro I think you need a video with 200,000 views and a large sub count to do that, plus if I wanted to make money I'd put all the time i put into these videos into something else.
@fancypenguins im having a problem, when i start the game and press the left button the worker will rotate to where the mouse is but it wont move. i have looked for programing error but it is allgood any ideas???
@jdandsomevids I literally had to squint to see the problem, the code is right and the logic is fine (pro tip: even though i say self.x just x is fine because the self. is implied i did it for learning purposes) the problem was the curly brackets around your x,y,mouse_x,mouse_y, should be parenthesis.
@spoloon Technically yes, but its MY abbreviation, Gamemaker doesn't understand it as that, it just knows its a variable and treats it as such. Its often a good idea to relate variables to what they keep track of and if the name is to long to abbreviate it.
@9723chris you never put a ; before a ( only at the end of a line that doesn't include if else or then, if you are asking a question you don't put a ;
@9723chris If you read the error code you can see its looking for a ) which isn't there, i can't see your entire thing of code how you typed it (you can copy and paste the event code in a PM to me) but i would look for a place where you forgot a ) to close a function or maybe there is sopposed to be 2 ) but you only put ). Once again feel free to PM me the code.
Hey, awesome tutorial. I am going to give this a try. I love RTS. By the way, I write music for video games, so if you or anyone else needs music, let me know, and we'll set something up.
@codcomedy100 np
TheMANIACjunior 6 days ago
you fucking legend!!!!!!!1111
codcomedy100 6 days ago
If you're going to have like sprites always in a side view can you make it not looking around like he's spining?
Lawrence237 1 week ago
@Lawrence237 yeah, of course
fancypenguins 1 week ago
Comment removed
Lawrence237 1 week ago
:D Thanks you a tonz!!! I really needed a tut like this since using the Spring Engine failed. When I'm finished making my RTS, I'll put chu in the credits for this tutorial :D CHUR A LIVE SAVER!!!
Pikatwig 2 weeks ago
@Pikatwig cool we are only 59 minutes apart from are messages :)
flybirdefly 2 weeks ago in playlist Game maker: How to make an RTS
@fancypenguins I'm looking to make an RTS like Ogame. is it possible without pro?
darkbeetlebot 3 weeks ago
when I test the movement, I get this error
"FATAL ERROR in
action number 1
of Step Event
for object object0:
COMPILATION ERROR in code action
Error in code at line 2: mp_potential_step(desx,desy,4,true); ^
at position 41: Symbol ) expected."
can you help me?
luigirox22 3 weeks ago
@luigirox22 i got the same prob what happened?
codcomedy100 6 days ago
lol nice wallpaper... I want
SteelCansFTW 4 weeks ago
I am also creating a space themed RTS as well. Perhaps both of our games will have some competition in the near future.
CSSUcommand 1 month ago in playlist Make a RTS Game
Is this possible without using pro?
harrydig5 1 month ago
@harrydig5 Some of it, other things you need to do differently and somethings you just can't do at all.
fancypenguins 1 month ago
@fancypenguins Thanks ill give it a go + sub =]
harrydig5 1 month ago
is that a strategy game
cio011 1 month ago
@cio011 Not sure if trolling or serious...
fancypenguins 1 month ago
first of my worker walked and turned as it is supposed to do but then wen i rotated it it stoped turning and now i rotated it back and it does not work help :(
lolipoppen1 1 month ago
@DeadOnPromnite
copy this under you have "^" this symbol in it you can't, because that's the unexpected symbol
if moving=1{ mp_potential_step(desx,desy,4,true)
}
TheMANIACjunior 2 months ago
@TheMANIACjunior you are a life saver and a legend im subbing you for this thanks!!!! :P
codcomedy100 6 days ago
just a tip: 1:20 when you say that you need to make it as centered as possible you can just crop it:edit sprite/transform/crop || and crop it to 0 and then center it
7Karpos 2 months ago
when i put numbers there blue not red help
theinsaneasylum100 3 months ago
@theinsaneasylum100 Do you mean in the GM Program itself? If so the colors are actually not important and you can even change them in the settings.
fancypenguins 3 months ago
FATAL ERROR in
action number 1
of Step Event
for object Worker:
COMPILATION ERROR in code action
Error in code at line 1: if moving = 1[ ^
at position 14: Unexpected symbol in expression.
DeadOnPromNite 3 months ago
@DeadOnPromNite nvm. Herp moment {} not []
DeadOnPromNite 3 months ago
is this correct?
if moving = 1( mp_potential_step(desx,desy,4,true);
)
and why do your numbers come out red?
MrMarioHacker 3 months ago
This has been flagged as spam show
Could I get the GMK file please send it to my channel please!!!
MyFanMadeFilms 3 months ago
I don't have an extra tab. I can't find set cursor either. Please Help!
dbzandroid13 3 months ago
@dbzandroid13 Never mind I put it in advanced mode.
dbzandroid13 3 months ago
whatsrts
randomaccountonface 3 months ago in playlist More videos from fancypenguins
@randomaccountonface Real Time Strategy
fancypenguins 3 months ago
plz can anyone help me
when i want to make my soldier to move it just kinda escapes form my mouse and follows a way always i did everything like in this video
peraxx779 4 months ago
FATAL ERROR in
action number 1
of Step Event
for object object0:
COMPILATION ERROR in code action
Error in code at line 2: mp_potential_step(desx,desy,4,true); ^
at position 41: Symbol ) expected.
thewilds10 4 months ago
@thewilds10 Same issue.
Toffster96 3 months ago
Comment removed
BenoArocks 3 months ago
@thewilds10 write it without the ( after the 1 on the first line and without the ) on the 3rd line
BenoArocks 3 months ago
when i look at the code for the in step event it says "Assignment operator expected"
MrCheifzor 5 months ago
@MrCheifzor Check the = signs. Also gml is based of Delphi, so it doesn't follow all of C logic or syntax rather so maker sure you put = instead of == like in C Languages.
fancypenguins 5 months ago
when i try to start the game i get
___________________________________________
FATAL ERROR in
action number 1
of Step Event
for object object0:
COMPILATION ERROR in code action
Error in code at line 4: ^
at position 1: Variable name expected.
MrCheifzor 5 months ago
___________________________________________
FATAL ERROR in
action number 1
of Step Event
for object object0:
COMPILATION ERROR in code action
Error in code at line 2: mp_potenitial_step (desx,desy,4,true); ^
at position 6: Unknown function or script: mp_potenitial_step
MrCheifzor 5 months ago
my player dont move and i did everything like you please help
DDCbreakers 5 months ago
@lightnex it moves left and right but not upand down and it dosnt rotate
lightnexgames 5 months ago
ERROR in
action number 1
of Mouse Event for Glob Left Pressed
for object worker:
Error in code at line 4: desy = mouse_Y; ^
at position 9: Unknown variable mouse_Y
lightnexgames 5 months ago
@lightnexgames hi instat of mouse_Y write mouse_y sorry for bad english
DDCbreakers 5 months ago
i need help
i folowed the tutorial but when i start the game the cursor and the ship are leaving
a trail please help me
PS: the tutorial is awesome!!!!
amindov 5 months ago
Thank you so much
DaemonRiku00 5 months ago
Comment removed
DaemonRiku00 5 months ago
uhh...fancypenguins, i really need help... when i want to test the game, it said "cannot find the required dlls"i dont know what i missed so if you have time please help me. thanks
rprastio333 5 months ago
@rprastio333 This shouldn't use any additional DLL files, are you using the Pro version?
fancypenguins 5 months ago
@fancypenguins yeah
rprastio333 5 months ago
@rprastio333 Try excecuting a different .gmk file and if that fails to re-install GM.
fancypenguins 5 months ago
do you rememer you rts made with game maker the midevil one is that the one that was simpler and if it was do you have a tutorial that one
wowchris223 5 months ago
cannot find valid runner data...?
EagleDarkX 6 months ago
please help
i followed the tutorial but when i play the game the objects and the cursor leaves a mark/trail when i point or move it.
any help??
TheProNamer1 6 months ago
Must I use the pro version in order to make an rts game? can I just use the normal version?
Destinyawe 6 months ago
@Destinyawe In order to use the code methods in the video you need pro 8.0 or standard 8.1 which is the new name for pro. I have videos on how to get both free.
fancypenguins 6 months ago
Will it cost money?
Like I mean can I just do this for free or will I have to pay for something
MrTacticalGaming 6 months ago
@MrTacticalGaming Will what cost money? The program can be bought for $40 now or you can get a cracked version, i have two video for this. This series uses version 8.0 not 8.1
fancypenguins 6 months ago
@fancypenguins so.. tell me do u need any scripting?
MrTacticalGaming 6 months ago
Ufff! I've done everything like you...But it says : FATAL ERROR in
action number 1
of Step Event
for object object0:
COMPILATION ERROR in code action
Error in code at line 2: mp_potential_step(desx,desy.4,true); ^
at position 33: Symbol , or ) expected.
Help pleaaasseee!
gunsnrosesAxlSlash80 7 months ago
This has been flagged as spam show
What have I done wrong???
gunsnrosesAxlSlash80 7 months ago
@themature1234 you put a [ and a } around the desx,desy,4,true instead of ( ), change it to:
(desx,desy,4,true)
fancypenguins 7 months ago
@themature1234 at the end with the ) after it you put a coma, instead put a semi-colon or leave it blank.
fancypenguins 7 months ago
error in this code image_angle = point_direction(self,x,self,y,mouse_x,mouse_y); what's wrong?
ninjatesshin 7 months ago
@ninjatesshin you put comas in between self and x and self and y they are self.x and self.y
(self.x,self.y,mouse_x,mouse_y)
fancypenguins 7 months ago
very good tutorial, but i have 1 problem:
if i write true in the function : mp_potential_step(desx,desy,1,true)
the object wont move it will only rotate :S
but if i make if false it will move with no problem. can u help me ?
dxxanthony 7 months ago
@dxxanthony so the true/false argument is answering the question "do i go around all objects?" so make sure that it isn't surrounded by objects. Also you can keep it false, just so long as all the objects the ship can't collide with are solid.
fancypenguins 7 months ago
I have to say I am extremely great full, this video was a huge help on getting my rst project started.
Kadalius 7 months ago
@Kadalius Glad i could help.
fancypenguins 7 months ago
Can you make it so that if you draw a rectangle around them, it selects them?
pudinthemushroomhead 8 months ago
When I click on one of my workers they move to the upper left corner on there own and won't come back. Do you know how I can fix this?
Nitrousboost1 9 months ago
@Nitrousboost1 your variables aren't being set, so GM substitutes them with 0, make sure that global.desx and global.desx are being set properly.
fancypenguins 9 months ago
error creating stand-alone: cannot find valid runner data.
please help me. = (
RtsRpgFpsGameNerd 9 months ago
@RtsRpgFpsGameNerd Sounds like a gamemaker problem, make sure that you have pro, make sure it's installed correctly and make sure you have a room to run.
fancypenguins 9 months ago
Isn't platform you work in this video is notebook Aser Aspire?
RussianSound 9 months ago
@RussianSound You mean my laptop? No I use a Toshiba Satellite.
fancypenguins 9 months ago
ok now the character is moving on the horizontal axis but not the vertical one. what do i do?
HaLO3gamer91 10 months ago
i have everything down that you did but one thing.... when i click, it actually looks when the mouse clicks buuuuuutttt it moves really weird. and it wont go below like an inch of the game screen.
HaLO3gamer91 10 months ago
Please help when i click my worker goes to 0,0 what do i do?
FuriousGaming100 10 months ago
hey can you help me, i followed your tutorial but when i go to test it, it comes up with this error:
FATAL ERROR in
action number 1
of Step Event
for object character_1:
COMPILATION ERROR in code action
Error in code at line 4: ^
at position 1: Variable name expected.
how to fix?
lisn92 10 months ago
@lisn92 Its hard to say because your line 4 is blank, look at line 4 and 5 and see if their is a variable that wasn't initialized(never given a value) its a problem where you're checking for something that isn't their yet, so either take that variable and in the create event have variable = 0; or goto global game settings>errors tab>treat uninitialized variables as zero.
fancypenguins 10 months ago
@fancypenguins thanks but it was becuase i put a bracket and not } lol, im finding your tutorials very usefull for a game me and my mate are making, good job btw :P
lisn92 10 months ago
ok thanks i fixed it
rirox399 10 months ago
can you put the code for step in the discription pls i can't seam to get what i type in to work
rirox399 11 months ago
@rirox399 if moving = 1{ mp_potential_step(desx,desy,4,true);
}
:D there ya go bud just copy and paste it exactly
slaughtabal 10 months ago
@rirox399 if moving = 1{ mp_potential_step(desx,desy,4,true);
}
sorry that one was messed up :(
slaughtabal 10 months ago
@rirox399 ok basically just pres enter after the first hash and make the "M" in mp_potential_step(desx,desy,4,true); almost directly under the o in moving :D
slaughtabal 10 months ago
what is that thing next to the word self.x? in coding
rirox399 11 months ago
Thank so much I can now start on my rts Idea :)
biggestaussietroll 11 months ago
@biggestaussietroll No problem, just a heads up the source code is in parts 25 and 30 and that their is a lot of video to these.
fancypenguins 11 months ago
@fancypenguins Ahh, yes I understand that,
biggestaussietroll 11 months ago
This is amazing! thank you soooooo much!
kirby1fan 11 months ago
This has been flagged as spam show
How To Get i The Code ?
Fufu988 11 months ago
How To Get i The Code ?
Fufu988 11 months ago
@Fufu988 Go to video 30 or 25 both have the same link in the desc. to the .gmk, anything in it can be used, graphics code sounds ect. It's from yoyogames so it's safe.
fancypenguins 11 months ago
@fancypenguins Nooo I Like The Part 1 !, I Need The Code Of Part 1 !!!
Fufu988 11 months ago
@Fufu988 I don't have just part 1, you can get the updated code or follow along as best as possible, it wasn't until part 16 where i got camtasia and zoomed in on the code enough, sorry.
fancypenguins 11 months ago
How To Get i The Code ?
Fufu988 11 months ago
@samkrfc I'm not sure what you mean, tab? I tab in after my if statements and the video might be skipping that frame because it lags behind a little.
fancypenguins 1 year ago
You Sir Have Made My Day Thanks For The TUT's Subbing
presidentdaterape 1 year ago
Um...I seem to have a little problem. i did all he coding right but my spaceship won't move! Did I do anything wrong?
ForsakenThirteen 1 year ago
i tried to make another game and i followed your EXACT tutorial and it still does it, this time it doesnt go to the top of the screen it just makes random movements and doesnt follow my mouse cursor...please help!
unbeatAAble 1 year ago
HI it would be great if you could help me....when i am on the game, i click to move my worker as you show...and my worker just goes off to the top of the screen and makes random movements but wont move from there. How do i change it? ive written all of the codes in correctly and everything. P.s your videos are great!! Thankyou! Please get back to me! thanks.
unbeatAAble 1 year ago
is there any whay to make it online
courtlandsr 1 year ago
@courtlandsr In gamemaker, not well. Gamemaker uses personal IP addresses to connect online, so if you don't have the persons IP you can't play with them. However, if you made a server, stored IPs and made players create accounts and gave the IPs associated with the usernames in the background so it's safe you might be able too. This would require a network programmer and money though.
fancypenguins 1 year ago
Mabye for the sake of confusion you should put the lines of code in the description - i know it would take longer but i and many other people would like it... Apart from that great vid i liked and suscribed :)
Mrbenybob 1 year ago
@Mrbenybob Thanks for subbing. I keep forgetting to add that you can download the source code for these videos in an annotation/link in the desc. it allows me to do less work and you to look at read and use all of the scripts and images in these videos. As of right now the link is in part 25 and 30 but i'll add it to all videos shortly.
fancypenguins 1 year ago
i have a request
would there be a way to make the an army in different colours without making more sprites
e.g if you were red and you have an ally he is blue instead of red
jarrodDS2000 1 year ago
@jarrodDS2000 It'd be difficult to say the least, i'll get back to you.
fancypenguins 1 year ago
___________________________________________
FATAL ERROR in
action number 1
of Mouse Event for Glob Left Pressed
for object object0:
COMPILATION ERROR in code action
Error in code at line 3: desx = mouse_x ^
at position 2: Only 1- and 2-dimensional arrays are supported.
what?
ConvertMusic 1 year ago
@ConvertMusic try global.desx and changing that everywhere since thats how it's set up later, if that doesn't work PM me.
fancypenguins 1 year ago
Lol i got some sprites and im gonna make a starcraft 1 engine with this all those torrents gave me viruses
ConvertMusic 1 year ago
@ConvertMusic Great, just remember this engine in top-down while Starcraft is 2.5D so you'll have to do some coding changes later and at first it won't look right.
fancypenguins 1 year ago
help me?
itzAdream 1 year ago
@itzAdream Sorry busy day yesterday. You forgot to put the variable, the error messages in GM are really great, they tell you exactly what's wrong and where it is. Look back in the video at the step event for object worker in line 4 at position 1. All of that was just putting the error code in sentence form.
If you still need help PM me it's easier to get into detail with PMs and i respond to PMs before i read comments.
fancypenguins 1 year ago
i am having trouble here and i have no clue whats wrong i have fixed alot of my mistakes but this 1 heres what it says FATAL ERROR in
action number 1
of Step Event
for object worker:
COMPILATION ERROR in code action
Error in code at line 4: ^
at position 1: Variable name expected.
itzAdream 1 year ago
im having a problem, when i start the game and press the left button the worker will rotate to where the mouse is but it wont move. i have looked for programing error but it is allgood any ideas???
lordaeron115 1 year ago
@lordaeron115 check the code to see if everything is exact, some common mistakes are putting ( where { should be, and not having the right spelling/code for the mp_potential_step function
fancypenguins 1 year ago
@fancypenguins thanks it was a spelling error
lordaeron115 1 year ago
u rule !!!
Try to become a youtube partner !!!!
TheBlackVikingPro 1 year ago
@TheBlackVikingPro I think you need a video with 200,000 views and a large sub count to do that, plus if I wanted to make money I'd put all the time i put into these videos into something else.
fancypenguins 1 year ago
great video and btw i love that wall paper
jarrodDS2000 1 year ago
what did you do to the two sprites you already had? i need to know.
meatho13 1 year ago
how do you change it to a moving sprite when it moves and how do you change it back to a still sprite when it stops
pro12j137 1 year ago
my ship does not rotate when i click it just stays faceing right but it moves
MrDJCJ123 1 year ago
does this require pro?
enoGaming 1 year ago
@enoGaming Yes, i have a video on how to get it.
fancypenguins 1 year ago
Hey can someone help me with this.....i try and start the game and i get this error
___________________________________________
FATAL ERROR in
action number 1
of Step Event
for object object0:
COMPILATION ERROR in code action
Error in code at line 1: if moving is = 1[ ^
at position 17: Unexpected symbol in expression.
CheckThemOut96 1 year ago
@CheckThemOut96 Change the [ into a curly bracket {
always use curly brackets when writing code.
fancypenguins 1 year ago
@fancypenguins thanks soo much
CheckThemOut96 1 year ago
This has been flagged as spam show
@fancypenguins im having a problem, when i start the game and press the left button the worker will rotate to where the mouse is but it wont move. i have looked for programing error but it is allgood any ideas???
lordaeron115 1 year ago
never mind. i found out what i forgot
i need two of ; in places and i captilalized the desx and desy
Kulopto 1 year ago
@Kulopto Glad to hear everything worked out.
fancypenguins 1 year ago
my guy rotates but doesn't move.... wtf
Kulopto 1 year ago
hahah i found out what i did rong ty very much for tut :} you de best :}
emlolcast 1 year ago
i did every thing you said to the note and it goes in all directions but does not move to the point i clicked
]
emlolcast 1 year ago
my worker is a little choppy and jumps forwards a little and turning is terrible
JKtonoso 1 year ago
This has been flagged as spam show
Fatal eror of Step Event
mp_potential_step(desx,desy,4,true);
apokalipsa101 1 year ago
This has been flagged as spam show
Fatal eror of Step Event
mp_potential_step(desx,desy,4,true);
apokalipsa101 1 year ago
Fatal eror in Step Event mp_potential_step(desx,desy,4,true);
apokalipsa101 1 year ago
moving = 1;
image_angle = point_direction{self.x,self.y,mouse_x,mouse_y};
desx = mouse_x:
desy = mouse_y:
ERROR at line 2 pos 38: Assignment operator expected.
it's talking about the self.x and self.y stuff but what's it doing?
jdandsomevids 1 year ago
@jdandsomevids I literally had to squint to see the problem, the code is right and the logic is fine (pro tip: even though i say self.x just x is fine because the self. is implied i did it for learning purposes) the problem was the curly brackets around your x,y,mouse_x,mouse_y, should be parenthesis.
fancypenguins 1 year ago
@fancypenguins oooooohh.......... that would make sense, thanks man...
jdandsomevids 1 year ago
Nevermind. proofreading my code showed that instead of desy, I wrote dexy. I've found this code extremely similar to ACS.
xSephironx 1 year ago
I have a problem with this :\
When I move the worker, his walkable distance is limited ish.
He can move left to right as much as he wants, but he can only move up/down a little bit.
xSephironx 1 year ago
awesome thanks :-D this was really helpful
bainthemainman 1 year ago
thanks it worked perfectly. :)
spoloon 1 year ago
does "des x and y " mean destination x and y?
spoloon 1 year ago
@spoloon Technically yes, but its MY abbreviation, Gamemaker doesn't understand it as that, it just knows its a variable and treats it as such. Its often a good idea to relate variables to what they keep track of and if the name is to long to abbreviate it.
fancypenguins 1 year ago
___________________________________________
FATAL ERROR in
action number 1
of Mouse Event for Glob Left Pressed
for object object0:
COMPILATION ERROR in code action
Error in code at line 3: desx = mouse_x; ^
at position 2: Symbol , or ) expected.
TheTechRebelion 1 year ago
___________________________________________
FATAL ERROR in
action number 1
of Mouse Event for Glob Left Pressed
for object object0:
COMPILATION ERROR in code action
Error in code at line 3: desx = mouse_x; ^
at position 2: Symbol , or ) expected.
TheTechRebelion 1 year ago
i need some help i get the error FATAL ERROR in
action number 1
of Step Event
for object Ship:
COMPILATION ERROR in code action
Error in code at line 3: ^
at position 1: Symbol ) expected.
bulluis 1 year ago
@bulluis you forgot a )
read the error code
Error in code at line 3: ^
at position 1: Symbol ) expected.
at line 3 in position 1 gamemaker expected a ) so put one there
fancypenguins 1 year ago
if moving = 1;( mp_potential_step(desx,desy,4,true);
)
9723chris 1 year ago
@9723chris you never put a ; before a ( only at the end of a line that doesn't include if else or then, if you are asking a question you don't put a ;
fancypenguins 1 year ago
@9723chris also it should be
if moving = 1 {
mp_potential_step(desx,desy,4,true);
}
they are curly brackets not parenthesis
fancypenguins 1 year ago
FATAL ERROR in
action number 1
of Step Event
for object worker:
COMPILATION ERROR in code action
Error in code at line 2: mp_potential_step(desx,desy,4,true); ^
at position 41: Symbol ) expected.
9723chris 1 year ago
@9723chris If you read the error code you can see its looking for a ) which isn't there, i can't see your entire thing of code how you typed it (you can copy and paste the event code in a PM to me) but i would look for a place where you forgot a ) to close a function or maybe there is sopposed to be 2 ) but you only put ). Once again feel free to PM me the code.
fancypenguins 1 year ago
@fancypenguins if moving = 1;(
mp_potential_step(desx,desy,4,true);
)
9723chris 1 year ago
Hey, awesome tutorial. I am going to give this a try. I love RTS. By the way, I write music for video games, so if you or anyone else needs music, let me know, and we'll set something up.
MattBaumann777 1 year ago
you should make it so that it turns to face the mouse only when you give it a command
airsoftbuddies50 1 year ago
The object weirds out. It doesn't move where the click was at all.
Invisibrah 1 year ago
umm i dont have the origin choice it has nothing there and it keeps running in simple mode aswell
Mal87fik 1 year ago
thanks that shall help
stickpge 1 year ago
This has been flagged as spam show
double u double u double u.sites.google.com/site/gamerprozone
middleboy2 1 year ago
Comment removed
oscarhorne 1 year ago
when i try making a game with this and click test play it says:
FATAL ERROR in
action number 1
of Mouse Event for Glob Left Pressed
for object worker:
COMPILATION ERROR in code action
Error in code at line 3: desx = mouse_x; ^
at position 2: Only 1- and 2-dimensional arrays are supported.
What should i do? Can you help me plz?
oscarhorne 1 year ago
@oscarhorne In the create event try putting
desx = self.x; //the self can be removed because x will assume the original object
desy = self.y; //same goes for y
fancypenguins 1 year ago
@fancypenguins I tried that but know it says:FATAL ERROR in
action number 3
of Mouse Event for Glob Left Pressed
for object worker:
COMPILATION ERROR in code action
Error in code at line 7: } ^
at position 6: Only 1- and 2-dimensional arrays are supported.
oscarhorne 1 year ago
i need help i did it like you did but i get thisw error when i start
fATAL ERROR in
action number 1
of Step Event
for object object0:
COMPILATION ERROR in code action
Error in code at line 2: np_potential_step(desx,desy,4,true) ^
at position 3: Unknown function or script: np_potential_step
help me plz
stickpge 1 year ago
@stickpge its mp_potential_step, its an 'm' not an 'n', probably should have made that clearer.
fancypenguins 1 year ago
thanks man this is very helpful
TheZodiac12345 1 year ago