Added: 1 year ago
From: fancypenguins
Views: 19,997
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (204)

Sign In or Sign Up now to post a comment!
  • you fucking legend!!!!!!!1111

  • 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 yeah, of course

  • Comment removed

  • :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 cool we are only 59 minutes apart from are messages :)

  • @fancypenguins I'm looking to make an RTS like Ogame. is it possible without pro?

  • 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 i got the same prob what happened?

  • lol nice wallpaper... I want

  • I am also creating a space themed RTS as well. Perhaps both of our games will have some competition in the near future.

  • Is this possible without using pro?

  • @harrydig5 Some of it, other things you need to do differently and somethings you just can't do at all.

  • @fancypenguins Thanks ill give it a go + sub =]

  • is that a strategy game

  • @cio011 Not sure if trolling or serious...

  • 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 :(

  • @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 you are a life saver and a legend im subbing you for this thanks!!!! :P

  • 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

  • when i put numbers there blue not red help

  • @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.

  • 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 nvm. Herp moment {} not []

  • is this correct?

    if moving = 1( mp_potential_step(desx,desy,4,­true);

    )

    and why do your numbers come out red?

  • I don't have an extra tab. I can't find set cursor either. Please Help!

  • @dbzandroid13 Never mind I put it in advanced mode.

  • whatsrts

  • @randomaccountonface Real Time Strategy

  • 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

  • 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 Same issue.

  • Comment removed

  • @thewilds10 write it without the ( after the 1 on the first line and without the ) on the 3rd line

  • when i look at the code for the in step event it says "Assignment operator expected"

  • @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.

  • 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.

  • ______________________________­_____________

    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

  • my player dont move and i did everything like you please help

  • @lightnex it moves left and right but not upand down and it dosnt rotate

  • 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 hi instat of mouse_Y write mouse_y sorry for bad english

    

  • 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!!!!

  • Thank you so much

  • Comment removed

  • 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 This shouldn't use any additional DLL files, are you using the Pro version?

  • @fancypenguins yeah

  • @rprastio333 Try excecuting a different .gmk file and if that fails to re-install GM.

  • 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

  • cannot find valid runner data...?

  • 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??

  • Must I use the pro version in order to make an rts game? can I just use the normal version?

  • @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.

  • Will it cost money?

    Like I mean can I just do this for free or will I have to pay for something

  • @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 so.. tell me do u need any scripting?

  • 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!

  • @themature1234 you put a [ and a } around the desx,desy,4,true instead of ( ), change it to:

    (desx,desy,4,true)

  • @themature1234 at the end with the ) after it you put a coma, instead put a semi-colon or leave it blank.

  • error in this code image_angle = point_direction(self,x,self,y,­mouse_x,mouse_y); what's wrong?

  • @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­)

  • 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 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.

  • I have to say I am extremely great full, this video was a huge help on getting my rst project started.

  • @Kadalius Glad i could help.

  • Can you make it so that if you draw a rectangle around them, it selects them?

  • 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 your variables aren't being set, so GM substitutes them with 0, make sure that global.desx and global.desx are being set properly.

  • error creating stand-alone: cannot find valid runner data.

    please help me. = (

  • @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.

  • Isn't platform you work in this video is notebook Aser Aspire?

  • @RussianSound You mean my laptop? No I use a Toshiba Satellite.

  • ok now the character is moving on the horizontal axis but not the vertical one. what do i do?

  • 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.

  • Please help when i click my worker goes to 0,0 what do i do?

  • 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 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

  • ok thanks i fixed it 

  • can you put the code for step in the discription pls i can't seam to get what i type in to work

  • @rirox399 if moving = 1{ mp_potential_step(desx,desy,4,­true);

    }

    :D there ya go bud just copy and paste it exactly

  • @rirox399 if moving = 1{ mp_potential_step(desx,desy,4,­true);

    }

    sorry that one was messed up :(

  • @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

  • what is that thing next to the word self.x? in coding

  • Thank so much I can now start on my rts Idea :)

  • @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 Ahh, yes I understand that,

  • This is amazing! thank you soooooo much!

  • How To Get i The Code ?

  • @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 Nooo I Like The Part 1 !, I Need The Code Of Part 1 !!!

  • @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.

  • How To Get i The Code ?

  • @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.

  • You Sir Have Made My Day Thanks For The TUT's Subbing 

  • 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?

  • 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.

  • is there any whay to make it online

  • @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.

  • 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 It'd be difficult to say the least, i'll get back to you.

  • ______________________________­_____________

    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 try global.desx and changing that everywhere since thats how it's set up later, if that doesn't work PM me.

  • Lol i got some sprites and im gonna make a starcraft 1 engine with this all those torrents gave me viruses

  • @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.

  • help me?

    

  • @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.

  • 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.

  • 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

  • @fancypenguins thanks it was a spelling error

  • u rule !!!

    Try to become a youtube partner !!!!

  • @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.

  • great video and btw i love that wall paper

  • what did you do to the two sprites you already had? i need to know.

  • 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

  • my ship does not rotate when i click it just stays faceing right but it moves

  • does this require pro?

  • @enoGaming Yes, i have a video on how to get it.

  • 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 Change the [ into a curly bracket {

    always use curly brackets when writing code.

  • @fancypenguins  thanks soo much

  • never mind. i found out what i forgot

    i need two of ; in places and i captilalized the desx and desy

  • @Kulopto Glad to hear everything worked out.

  • my guy rotates but doesn't move.... wtf

  • hahah i found out what i did rong ty very much for tut :} you de best :}

  • i did every thing you said to the note and it goes in all directions but does not move to the point i clicked

    ]

  • my worker is a little choppy and jumps forwards a little and turning is terrible

  • Fatal eror in Step Event  mp_potential_step(desx,desy,4,­true);

  • 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 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 oooooohh.......... that would make sense, thanks man...

  • Nevermind. proofreading my code showed that instead of desy, I wrote dexy. I've found this code extremely similar to ACS.

  • 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.

  • awesome thanks :-D this was really helpful

  • thanks it worked perfectly. :)

  • does "des x and y " mean destination x and y?

  • @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.

  • ______________________________­_____________

    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.

  • ______________________________­_____________

    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.

  • 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 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

  • if moving = 1;(  mp_potential_step(desx,desy,4,­true);

    )

  • @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 also it should be

    if moving = 1 {

    mp_potential_step(desx,desy,4,­true);

    }

    they are curly brackets not parenthesis

  • 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 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 if moving = 1;(

     mp_potential_step(desx,desy,4,­true);

    )

  • 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.

  • you should make it so that it turns to face the mouse only when you give it a command

  • The object weirds out. It doesn't move where the click was at all.

  • umm i dont have the origin choice it has nothing there and it keeps running in simple mode aswell

  • thanks that shall help

  • Comment removed

  • 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 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 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.

  • 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 its mp_potential_step, its an 'm' not an 'n', probably should have made that clearer.

  • thanks man this is very helpful