answersLogoWhite

0


Best Answer

In the step event of the object following the cursor, place the following code: move_towards_point(mouse_x,mouse_y,2); To speed up or slow down how fast the object follows the cursor, change the value of 2!

User Avatar

Wiki User

16y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

If you want it to chase an object, i.e. cutting corners and going directly to the object, use a step event and then under move use step toward and stet:

x: "object you want to chase".x

y: "object you want to chase".y

speed: "how fast you want it to chase"
If you want it to follow the positions exactly, make 2 1d arrays (or "list" as GML calls it), one for x and one for y, and make the object that defines the positions push the values onto the top of the stacks, and have the following object pull from the bottom of the stacks then delete the bottom of the stacks. GML might do the last two steps at the same time, but I haven't used lists so you'll have to experiment a bit. NB: you'll have to use Advanced mode for this.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

There are different ways to make something follow you, or any object as a matter of fact.

There is -

Move Towards -- the object moves towards you without being pestered by solids

Step Towards -- the object moves towards you and stops at either solids or any instance

Step Avoiding -- the object moves toward you and steps around solids or any instance.

I hope that these definitions were helpful.

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

Go to the room and select the view tab. There is an object following section there.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: In game maker how do you make something follow you?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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

Je moeder is gay.


How do you get started in game Maker?

Try and follow the tutorials on YoYo Games: http://www.yoyogames.com/make/tutorials


How do you make something appear on game maker?

instance_create(x,y,object_name) is how to make objects appear.


How do you make Game maker games?

for make a game in game maker. go to. www.youtube.com/watch?v=6pGOgjZCOBo


How do you make a health bar in game maker?

How DON'T you make a health bar in Game Maker.


What is the move to mouse click code for Game Maker?

There is no code for that, you'll have to make something else. sorry


What is better Game Maker or RPG Maker?

It depends what sort of game you want to make. RPGMaker can make only RPGs but it's much easier than Game Maker.


Which game maker can make a ninja game?

Any game maker can create a ninja game. Most choose not to.


How do you make an object follow another object in a Game Maker game?

objectfollow = name or id of object to follow. spd = speed to follow. { if collision_point(self.x,self.y,objectfollow,true,true) = false { mp_potential_step(objectfollow.x,objectfollow.y,spd,true) } }


What is a good program to make a Mario game?

Somewhat answerGo to poupetugames.com there is a site to make Mario levels not game but levels witch you can post on the site where people can load them up and play them wheneverAnswerOn yoyogames.com (where you download gamemaker) search in games Mario maker or something like that. you should get something up for a Mario bros. 3 game maker engine. it's very simple to use.AnswerSCREW GAME MAKER just get Mario builder final ver 4 if you get it you can make Mario games EASYAnswerLots and lots and lots and lots and lots and lots and lots of practice with game maker, spanned out over several (4-7) years.AnswerInstead of trying to use Game Maker to make a Super Mario-like game I suggest you look into the SuperTux project instead. It is an open-source game, and you are free to use the engine if you want.I say adobe/macromedia flash would be the best.AnswerMaybe you need Game maker which you can


How can you make a Mario game in RPG maker xp?

I've done it on rpg maker 2000 not XP however.


How do you make games on the computer?

You could use game maker. Download it by typing download game maker. This will be a freeware