Tutorial 7: How to make your character shoot towards your mouse in Game Maker 8

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
6,946
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 30, 2010

Follow the invideo instructions on how to make a character in your game, usually the main character, shoot and look towards your mouse, Top-Down Shooter in Gaming language.. Notice: If you have the Pro Edition of GameMaker 8 use image_angle = point_direction(x1,y1,x2,y2) instead of doing the animation in this video.

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (masteranimation2008)

  • Do you need pro version for this?

  • @robertjackFunEvideo I have the lite version, so what do you think? If you have the pro version, skip the animating part and change the following line(s):

    image_index=direction-90;

    to:

    image_angle = point_direction(x,y,mouse_x,mo­use_y);

  • ERROR in

    action number 1

    of Mouse Event for Glob Left Pressed

    for object Snopp obj 1:

    Error in code at line 1: f=instance_create(x,y,sperma_o­bj)  ^

    at position 23: Unknown variable sperma_obj

    What should i do=?

  • @AnonymGangster It's pretty much self-explanitory really, make sure sperma_obj actually exists as an object and that the object is named like that, not the sprite.

  • @masteranimation2008 when it's done loading my arrow is autotmaticly moving the character instead of me clicking in that spot, this means it is shooting off

  • @thecamraeye It's intended to be like that...

see all

All Comments (45)

Sign In or Sign Up now to post a comment!
  • thnx, bro

  • hey man i can't catch all codes!anyone avable to help???

  • help me my guy goes through the wall and he doesn't move towards my mouse

  • how do u make your character move

  • is there a way to make it shoot towards an object instead of mouse?

    

  • @TheLiam236 lol you spelt mouse wrong

  • THANK YOU SO MUCH WORKED 100%

  • this sucks, it wont even point to my mouse

    will only point in opposite direction :(

  • hello when i followed every step in your video and it works fine but when i try to shoot it says this

    ERROR in

    action number 1

    of Create Event

    for object Bullet:

    Error in expression:mouce_x position 1: Unknown variable mouce_x

    CAN U HELP ME?

  • Lol all those error are self explanatory :P

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