Added: 2 years ago
From: John8pie
Views: 15,152
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (115)

Sign In or Sign Up now to post a comment!
  • Wow! Thanks of tutorial!

    I'm find it!

    Sorry, i'm russian...

  • FATAL ERROR in

    action number 3

    of Create Event

    for object Player:

    COMPILATION ERROR in code action

    Error in code at line 1: global d += direction ^

    at position 8: Variable name expected.

    HELP!

  • Loud voice!! (FUckin hell!!)

  • Can you make a Notepad document with the Codes used in this Tutorial ??

  • ERROR in

    action number 1

    of Step Event

    for object radus:

    Error in expression:trooper.x position 9: Unknown variable x

    WTF!!!!! (im new to this stuff so plese help meh)

  • im using gamemaker 8.0 pro so is it the wrong gamemaker

  • @ninjagamexpert Well I don't know, I need to know the code and functions that you are using. If it is shooting to the right, you need to change it's direction variable in each step event.

  • @John8pie

    i fixed the moving thing but the enemys are still shooting out walls and wont move

  • @John8pie

    my enemys are shooting out sights or walls, and my player keeps turning counter-clockwise and wont shoot

    help fast

  • @ninjagamexpert Well I can't really help you with just that information. What code are you using?

  • @ninjagamexpert So I'm making a 2D side scroller, how could I make it change the sprite of the enemy when it changes direction

  • @John8pie

    oh thanks dude!

    (lol i keep messing up)

  • oh thanks dude!

  • when i try to play it says :action number 2

    of Create Event

    for object obj_zombie:

    Error in expression:random[90]+90 position 1: Unknown variable random or array index out of bounds.

    please help fast

  • @ninjagamexpert You are using braces after your random function call. Parenthesis are what you need.

    random(90)+90

    Functions use parenthesis; arrays use braces.

  • @ninjagamexpert i have found your error noticed this: random[90]+90 well replace it with this : random(90)+90

  • HELP ME PLEASE!! IT SAYS UNKNOWN VARIABLE X ON THE STEP EVENT OF RADIUS ! WHYYYY

  • @osbysweden x is a local variable, that is really odd. Try declaring it in the create event 'var x;'

  • hoq do you rotate it without your sprite facing it upside down?

  • @Blizeful Make sure your sprite is facing the right in the sprite editor.

  • thanks man i figured it out .......but what i really need your help with is possibly a tutorial on how to make a object doge bullets and return fire...im trying to make a full on war game with enemy soldiers and friendly soldiers fighting while the main player is in the mix but im stuck on this problem ........it would be much appreciated -THANKS-

  • coud you make it in a platform game? jw..

  • i have a question i am on game maker 8 pro althought the step avoiding action is not there, is there another way to do the required action???

  • @justintime141 Step avoiding is there, its at the bottom on the "Move" tab.

  • i am makin an fps and when i use my radius it always stays by the side of my player obj. i checked all the solid collision stuff but it still stays by the side. any ideas?

  • @seriousbiskit Are the origins of the radius sprite and player a bit mismatched?

    It's a good idea to have them both in the center of each sprite.

  • JOHN8PIE i have a ? ........lets say it took three or more shots to kill you enemy how would you get blood to splatter each time you bullet made contact with you enemy? THANKS

  • @51PROBES Just a collision event for the bullet and enemy. In that event, create an instance of blood or just draw it. Should I go more in depth with this and post some code, or do you think you can figure it out?

  • It gives me an error

    ______________________________­_____________

    ERROR in

    action number 1

    of Step Event

    for object rADIUS:

    Error in expression:Player.x position 1: Unknown variable Player

  • @andrekid21 You have to replace 'Player' with the name of your player object.

  • @John8pie Ok thanks m8 you'r the best

  • How do you make the walls? I tried setting horizontal & vertical speed of the player to zero on collision and it doesn't work right, It always faces right and doesn't follow the mouse.

  • @Kittyinmynose at 8:01 it looks like I mention you set speed to 0 when the player collides with the wall.

  • Im still trying to find out how to make friendly ai's.

    I tried it but everytime somethings wrong.

  • @ClusiveC Try to make him do everything like the enemy its just he shoots to an enemy and runs towards them.

  • @MRXkick I tried that, i must have done something wrong.

  • @MRXkick I got it to work today, but now, when we kill everyone, i get an error message. i know how to fix it though.

  • @ClusiveC What does the error?

  • @John8pie The friendly ai are programmed to shoot at and move around, as long as there are enemy's to shoot. So if there are no enemies to shoot.. i get teh message.

    I'm going to work on trying to fix it today. I should get it, because so far i've fixed all of the errors i've been getting.

  • but i wont the enemy run away from my player

  • @36425682 "but i wont the enemy run away from my player" I'm sorry, I didn't wuite understand that.

    What is it you'd like to happen in your game?

  • @John8pie wont=want

    he wants his enemy to run away from the player when the player gets close

  • uhm, how should i make the enemy bullet? cuz when i tryed to make it, the enemy didnt shoot -.- so could anyone help?

  • @wowmage111 What do you mean 'make' it? The sprite, the object, what?

  • @John8pie I dont know but i think he meant the code.

  • @John8pie what properties should i use on the object ''enemy Bullet'' like scripts and shizz

  • @patrick123900 You're using underscores, kiddo. Underscores are only for the mouse's coordinates.

    You want "Player.x" and "Player.y" Obviously, 'Player' should be the name of your player object.

  • can i say that the animation for the player stabbing with his dagger the "bullet" and so whenever i press the button to hit it'll attack?

  • Help! enemyes are folowing me but not shooting

  • @efireman360 make sure it is centered i.e if the sprite is 32x32 set the x/y to 16

  • Whenever I begin to play the game, whenever one guy spots me, they all spot me and stop shooting at me? How do I fix it?

  • @Dicinic oops i meant to say they all START shooting at me at once

    

  • @efireman360 Make sure both your players sprite and radius sprite have the origin in the center.

  • Dude your bullet things are vague and I can't tell what the values are. Also, When my player moves, and the radius hits the enemy, it stops and my tank moves without it. also my enemy hardly turns and only makes bullet on top of itself.

  • Thanks very much really helped!

  • @gamerguy2217 because when they shoot your life goes -1 if u have that in an action put relative on

  • how do i do if i want it to follow the mouse instead of player?

  • @MrFredde9999 In the move_towards_point(...) code, change it to

    move_towards_point(mouse_x,mou­se_y,motion);

  • WTH DO YOU MEAN "AND ALL THAT I CANT SEE THE VALUES ON HALF OF THEM"

  • Comment removed

  • @BionicleStudios347 It acts just like the radius, it should jump to the AI. I might be getting ahead of myself, this may not be in the video tutorial, but each AI should have its own sight

  • @BionicleStudios347 The origin of the radius sprite should be the center. Same with your player.

    You must've missed something, then.

    Sight is what is going to control whether the enemy will 'see' you, and then decide to follow or attack.

  • @BionicleStudios347 This was 7, at the time the video was created.

  • @BionicleStudios347 Nope! All of my videos have Lite edition coding, unless I state in the video.

  • how do i make the radius bigger!

  • @BlueRazorProductions Simply make a big radius sprite.

  • @John8pie HOW?

  • @BlueRazorProductions Make a sprite. Make it be like, 64 by 64 pixels, whatever you want. Have it just be a big circle. Set the origin to the center. hard!=1;

  • @gamerguy2217

    Tell me about the error message, or post it here.

  • I have a over head playing game, All I want is to make the enemy object move at the player, may some one help me?

  • Nice vid but i need to know something, can anyone or John8pie help me?

    Ive made an enemy that follows me, but, ive only got one sprite when he moves, so like, his sprite looks like he is walking right, but when he walks left he looks like he's moon walking? The enemy walks around randomly, so how do i make it when he randomly goes left, to make a sprite to make it look like he's going left, e.t.c. I hope u guys get what i mean.

  • @MrBlueFlames If you don't have it in all directions like I do in the video, you could simply test the direction. Like,

    if direction=0 { sprite_index=PlayerLeft }

  • I fixed the radius problem but now i need to know how to make the enemies shoot slower.

  • Ok, i got mostly everything, but just one problem:

    Why is it that my "radius" is attached to me instead of me being inside it? It's hard to explain what's going on and that's the best I can do.

  • @AlmighyDove

    Yeah, sorry, I don't think I can help with that explanation...

  • @AlmighyDove Rereading the scenario, I'm thinking your radius's sprite origin is not in the center, like it should be.

  • @John8pie yeah i spent about 30 mins toying around with gm until i found that out. thanks though

  • For some reason it is crashing. It says error at object enemy, event create. It is having a problem with shoot = false. It says "at position 7: variable name expected." I'm new to game making, so I don't know what that means let alone how to fix it. I did everything exactly like you, except I wanted to use WASD to move.

  • @AmericanRiot571 haha nevermind. I figured it out. I had a sound for shooting I named shoot, so the game got confoozled.

  • awesome thanks

  • nice tutorial^^ gj

  • how u make radius

  • @Inatje

    How do u make radius? Sprite or object?

    Sprite is just a basic circle, object just follows the player

  • @John8pie but wen it comes in the raidius it dont follow me or shoot

  • 1:29 - Can't you just do this in the code?

    direction-=random(360)

    That's simpler ^^

  • did every thing u did but AI didn't shoot // scratch that it works

  • did every thing u did but AI didn't shoot

  • it comes up with an error and it doesnt know what player _x and player _y are any help?ps i have game maker 8 lite does that make a difference

  • @RWD130

    it shouldn't.........

  • Take out the spaces, and you will have to have it be the name of your player's object. So it'll be like PLAYERNAME.x and PLAYERNAME.y Dont use underscore(_)

  • Rofl, I just realized I set Alarm 2 to 30 and we dont even end up using Alarm 2. I'm pathetic.

  • good video.. maybe help alot of people

  • Can you send me this tutorial file as gmk.?

  • Sorry, I no longer have it

  • btw is there a way to have random and not have it so theres a possibility of numbers behind a decimal

  • Yes, you use the floor code. I believe you put it before the number.

  • the only thing i can say to improve this is create a "radius" around the enemy facing "Direction"

    Add Event contact with "player" event : create bullet relative ect. so the enemy cant spot you when your behind them

  • very good tuts mate love them really helped ! :)

  • Cool coding...looks really cool...BUT the drawing...OH NO...so bad as my english...sorry,it´s so...but you know what you do...really nice.

  • Okay, sounds good. Let m,e know how it goes as soon as you can~

  • can u make another video showing exactly what u do so u have to make the objects and put them in to because just clicking the action and saying it doesnt help

    btw can u click all the actions instead of saying it.......u really confuzzle me sometimes

  • Have you gotten a chance to try it out yet? What do you think? :D

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more