How To Move My Fish? :)

Discussion in 'How Can I...?' started by KidApp, Jul 19, 2017.

  1. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    72
    Likes Received:
    12
    I have a game for kids. There are a fish (character) and a House. A kid should drag the fish and drop on the house. Direct movement. Works great.

    But I want my fish to swim around by itself (a circle or a line) before the kid grabs it.
    How can I achieve that?
     
  2. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    72
    Likes Received:
    12
    [​IMG]
     
    Last edited: Jul 19, 2017
  3. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    72
    Likes Received:
    12
    Any Ideas?

    How to move the fish BEFORE direct movement?
     
  4. adrogdesigns

    adrogdesigns Avid Boxer

    Joined:
    Dec 5, 2016
    Messages:
    318
    Likes Received:
    233
    Use the path logic?
     
  5. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    72
    Likes Received:
    12
    This is the 1st and obvious solution which, unfortunately, doesn't work with DIRECT MOVEMENT
     
  6. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    72
    Likes Received:
    12
    There should be another way around
     
  7. meremy

    meremy Avid Boxer

    Joined:
    Aug 26, 2016
    Messages:
    134
    Likes Received:
    66
    Have you tried adding an animation of the movement with loop ?
     
    KidApp likes this.
  8. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    72
    Likes Received:
    12
    Well, I can use the animation, but the fish swims far (half of the screen) and at the moment of dragging it - it will continue to move under my finger, which is strange. =)
     
  9. Benfont

    Benfont Avid Boxer

    Joined:
    Sep 27, 2016
    Messages:
    277
    Likes Received:
    278
    @KidApp have you tried using the transform logic to move the fish from point A to point B? I am not in the computer at the moment but I can try later at home to see if it actually works.
     
  10. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    you should use joystick for grabbing the fish and moving.
    and in advanced component set it to collide with an invisible object . which you place on the left of screen and right of screen.
    set left object to move 20 and right object to -20, for example.
     
    KidApp likes this.
  11. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    72
    Likes Received:
    12
    Benfont, transformation logic is for Objects only, not for Characters.
     
  12. meremy

    meremy Avid Boxer

    Joined:
    Aug 26, 2016
    Messages:
    134
    Likes Received:
    66
    You make advance move to a character when he collides with a wall he will receive for example Multiply -1 movement and it will set in backwards
     
    Benfont and KidApp like this.
  13. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    72
    Likes Received:
    12
    I don't get =) Could you please tell me more about this? Advanced component for what? For a character? Advanced move?
     
  14. Benfont

    Benfont Avid Boxer

    Joined:
    Sep 27, 2016
    Messages:
    277
    Likes Received:
    278
    @KidApp and what if you connect an invisible object to the character and try it? as I said before I am not at home so I cannot test it right now. But I believe it can be achieved.
     
  15. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    72
    Likes Received:
    12
    But how Can I force my character to move if it is under Joistic control?
     
  16. Benfont

    Benfont Avid Boxer

    Joined:
    Sep 27, 2016
    Messages:
    277
    Likes Received:
    278
    @meremy that is also another good option..
     
  17. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    72
    Likes Received:
    12
    @Benfont I have different levels and my Character jumps there with a Checkpoint action, so it is impossible to link it to an object on a new level.
     
  18. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    72
    Likes Received:
    12
    @meremy I Got it! =) Good idea, but unfortunately my character is under the joystick control. So it doesn't move by itself.
    And I can not apply any force: gravity, or Velocity/Air drug because of it.

    So the question is "How can I make my Character move by itself under a Direct Movement control? =))))))
     
    Last edited: Jul 20, 2017
  19. Benfont

    Benfont Avid Boxer

    Joined:
    Sep 27, 2016
    Messages:
    277
    Likes Received:
    278
    hey @KidApp I have been trying to find a solution to your problem and I am afraid that there is none. If you have the direct movement option ticked and using the joystick I believe there is no way of moving the character apart from using the joystick.
    What if you try moving the background objects instead? to create the illusion the fish is moving.. this is just an idea.

    Sorry I couldn't help in the end,
    good luck with your game,
    Cheers
    Jonathan
     
    KidApp likes this.
  20. KidApp

    KidApp Boxer

    Joined:
    Apr 9, 2017
    Messages:
    72
    Likes Received:
    12
    Hey, @Benfont , thank you soooo much for your effort, I really appreciate that!
    Year, there is no solution for my question. I ended up by putting some decoration fish to swim around.
     
    meremy likes this.

Share This Page