answersLogoWhite

0


Best Answer

for shooting towards the mouse, there is an event called "global mouse left"

in this event, add an action called "create object moving". select the obj_bullet

(by now you should have this object created) X:mouse_x, Y:mouse_y ,speed:30

and your done. add enemies with a collision event to the bullet and add destroy instance:self.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make an object shoot in game maker?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you make an object shoot in game maker 7?

Depends. You could have it make a new object, for bullets as an example, you could have it make a line, for lasers as an example, you could have it do all sorts of things.


How do you make a sprite shoot in game maker 7?

A sprite cannot do anything. If you meant "How do you make anobject shoot in game maker 7?" then it's easy.Create an object for your bullet and give it a sprite. Then in the object you want to shoot the bullet add a "create instance with motion" actionwith the bullet specified.Alternatively you could use a "create instance" action and then add an on creation, "move" action to the bullet.


How do you make a sprite shoot in game maker?

A sprite cannot contain code.


How do you make your sprite shoot in game maker 7 if it has turned?

by doing programming and cordial


How do you make a player shoot in a Game Maker game?

Create a bullet object and then use Create Moving Instance (I think that's what it's called)Should hopefully soon be merged with How_do_you_make_a_player_shoot_in_a_Game_Maker_gameUntil then, check out the answer over there.


How do you make an object pick something up in a game maker game?

Je moeder is gay.


How can you make an object appear on game maker in code?

use the instance_create function


How do you make a player shoot in a Game Maker?

Create a bullet object and then use Create Moving Instance (I think that's what it's called)Should hopefully soon be merged with How_do_you_make_a_player_shoot_in_a_Game_Maker_gameUntil then, check out the answer over there.


How do you create a question and answer box in game maker?

First Make a Sprite of the question make it an object, same with the answer


How do you make an object fly in game maker 7?

Have it move without gravity keeping it on the ground.


How do you make a object create behind another object in game maker?

with (instance_create(x,y,objecttobecreatedbehind)){depth = objectinfront.depth + 1;}


How do you make a object move towards another using Game Maker?

in code:move_towards_point(object.x,object.y,speed)