Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: characters follow player  (Read 981 times)

0 Members and 1 Guest are viewing this topic.
characters follow player
« on: October 28, 2007, 03:17:52 pm »
  • is Awesome
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 185
I need a script to make characters follow the player.  :P
Logged
http://zfghq.smfforfree3.com/index.php

My forum!!
<a href="http://www.factorizer.co.uk" title="Funny Facts"><img src="http://www.factorizer.co.uk/Zeda fan gamer,0,ffffff,000000,0.png" alt="Funny Facts" />[/url]

The Berryster

Re: characters follow player
« Reply #1 on: October 28, 2007, 04:43:29 pm »
This is for GameMaker 7.0, right?

Well, a very simple way to do this, would be:
Code: [Select]
move_towards_point(obj_player.x,obj_player.y,Speed)
Replace speed with the speed you want the character to move, and obj_player with the play objects name.

Other than that, I don't really know...

Hope that helps! XD
Logged

mit

Re: characters follow player
« Reply #2 on: October 28, 2007, 10:44:11 pm »
  • QBASIC programmer since age 4. Take that, world.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 1079
Many ways of having following.... For instance, that code makes them move directly towards the player, but you might want them not to cut corners and follow the exact path, like this: http://www.kousougames.co.uk/data/downloads/counter.php?file=Following
Logged
Programmer / Spriter / Level designer / Game Director / Web Designer / Music Sequencer for
Random Highscore table:

Play the Kousou Arcade today!
  • Kousou Games
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.365 seconds with 44 queries.