User Tag List

Results 1 to 9 of 9

Thread: following player

  1. #1
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    following player

    Does anyone know a good tutorial or method to get character to follow the player. I'm gonna be starting a new project with a dev team I've got forming. We're going into a pretty extensive project, I'll probably be here a lot asking stuff again, lol. any way after that run on I'd like to take a moment to recuperate myself, lol.

    alright, what I'm thinking is the player will have characters following them at least a couple for the first level. Is this easily achieved in a manor that they keep some kind of distance..I mean it's alright if they bump into each other, but not walking on top of each other the whole time.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Nov 2011
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jibs View Post
    Does anyone know a good tutorial or method to get character to follow the player. I'm gonna be starting a new project with a dev team I've got forming. We're going into a pretty extensive project, I'll probably be here a lot asking stuff again, lol. any way after that run on I'd like to take a moment to recuperate myself, lol.

    alright, what I'm thinking is the player will have characters following them at least a couple for the first level. Is this easily achieved in a manor that they keep some kind of distance..I mean it's alright if they bump into each other, but not walking on top of each other the whole time.
    you can have them follow the player at a set distance and if they have their own collison boxes you just make them bounch when they collide off one another (you could have them set to the possition of the x,y of the player character and then minus the distance you want them to hold back).

    hope this helps.

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jan 2010
    Posts
    164
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The problem is mostly when the little followers hit an edge where they have to jump.. assuming it's a platform game.
    You could have an object at the edge, telling the characters to jump. The problem is that they might end up jumping back and forth because they hit the object on the other side as well :P Might be some workarounds, but it might also be very hard :P

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleXNA Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    gkinfinity's Avatar
    Join Date
    May 2011
    Location
    USA
    Posts
    284
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    What type of game are you making? Side scroller, Top-down view, isometric, or something else entirely?

  5. #5
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    We haven't started developing yet, but it's going to have top down levels where the characters follow. I like reales explanation. How do you set up collision boxes? and what were you gonna contribute if I told ya what style game it was gonna be? haha

  6. #6
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jibs View Post
    We haven't started developing yet, but it's going to have top down levels where the characters follow. I like reales explanation. How do you set up collision boxes? and what were you gonna contribute if I told ya what style game it was gonna be? haha
    Create a active box, one pixel larger than your character. Always set it to your character. Set all movements and controls to the collision box.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  7. #7
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So invisible objects still detect collision? That's sort of a question I had for creating line of site to, but I'll post that in my other thread on that to keep this one on topic, lol.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Nov 2011
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yep, just make invisible and it will work... its a standard for any engine really. interesting and somewhat random fact, take a look at street fighter 2 that game uses hit boxes and now look at street fighter 4... that game is built in 3d but towards the end of development they had to switch back to 2d hitboxes because they had too many issues using the 3d models to detect the collisions...

    I have a little breakout clone game i am playing around with and the paddle has 5 seperate hitboxes on it, for each one of the five sections- the ball will bounce off at a differnt (and more specific) angle. the hitboxes are all offset from one another and they follow the paddles movement, i then have an invisible box the player uses to move the paddle left and right (as its for ios)

    what i suggest you do before developing any big projects is to just follow some tutorials on MMF2 to get the basics down... it doesnt really matter if the tutorial isnt specific to the project you have in mind because they will help you to understand the basics of MMF2 and of game design and making in general.

  9. #9
    No Products Registered

    Join Date
    Oct 2011
    Location
    Canada
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh yeah, I've been doing that..lol...I've programmed rpg elements in a game, done break out stuff, watched tutorials on line of sight ai. I'm just trying to fill in some holes, lol....most of it I learned to do without hit boxes, and stuff like that, but it's good to know better methods.

Similar Threads

  1. Name of player
    By RabidRabitt in forum The Games Factory 2 - Technical Support
    Replies: 9
    Last Post: 15th August 2013, 10:39 PM
  2. Any way to let one player send a text file to another player?
    By BrashMonkey in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 23rd January 2013, 06:56 PM
  3. Player 2 Walks from Player 1
    By Radoslaw in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 3rd September 2011, 06:02 PM
  4. Player 2 Walks from Player 1
    By Radoslaw in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 2nd September 2011, 03:44 PM
  5. How would you 2 player?
    By camelman in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 8th November 2008, 10:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •