User Tag List

Results 1 to 4 of 4

Thread: Object follow a random player

  1. #1
    Clicker 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)
    Unknowner's Avatar
    Join Date
    Oct 2011
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Object follow a random player

    Hello all, im trying to do this:

    A player (player 1) connects, so a active object is created.
    Another player (player 2) connects too, same active object is created but with diferent ID.

    Then enemys start to spawn every second and they have to follow one of the players at random. ¿How I do enemys pick a random player and follow them until he get destroyed?

  2. #2
    Clicker 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)
    Unknowner's Avatar
    Join Date
    Oct 2011
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Solved, just was missing to compare the id of the object with the id of the follower :p

  3. #3
    Clicker Fusion 2.5
    Bertard's Avatar
    Join Date
    Jan 2014
    Posts
    150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So easy

    Put mouvement boucing ball on your PNJ

    Every 1 minutes => create an objet => set value A to rrandow(1;nb of player)

    Value A = 1 => Look in direction of Player 1

    Value A= 2 => Look in direction of Player 2

    Value A = numero of player => follow player who have the numero of Value A

  4. #4
    Clicker 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)
    Unknowner's Avatar
    Join Date
    Oct 2011
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Bertard View Post
    So easy

    Put mouvement boucing ball on your PNJ

    Every 1 minutes => create an objet => set value A to rrandow(1;nb of player)

    Value A = 1 => Look in direction of Player 1

    Value A= 2 => Look in direction of Player 2

    Value A = numero of player => follow player who have the numero of Value A
    Your players are the same instace of object, so u can't target them like that

Similar Threads

  1. How to make the screen follow the player?
    By fishrod in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 9th January 2014, 06:24 AM
  2. Enemies that follow player???
    By MrXkill in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 18th April 2011, 03:49 AM
  3. enemy follow player?
    By Viewtiful in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 2nd January 2011, 06:43 PM
  4. Partners that follow player
    By Karasu in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 20th July 2009, 09:25 PM
  5. Follow Player
    By dsilvers in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 22nd August 2008, 08:11 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
  •