How do I make movement for a fish that jumps?

0 favourites
  • 9 posts
From the Asset Store
Run and Jump in 3 Dimensions! Take your platformer to the next level!
  • I tried multiple things now and I just can't get it to work

    How do I make a fish hunt the player?

    Lets say I have a platformer.

    How do I make the movement on the fish so it tracks the player, sets position below the player, then makes a "realistic" fish jump movement in a curve then it falls down to the water below (and goes invisible again) then repeats after a few seconds.

    I tried the most movement options, but I just can't get this to work, is it supposed to be car movement (because of the curve?)

    Tried to search the forum for "Fish Behavior, fish jumps, curved jumps, fish" but coulden't find anything

    No idea, any help would be greatly appreciated

  • Tried again for a few hours, not sure if im just dumb right now

  • Look up sine behavior because thats what your going to need.

  • Triforce

    Try Bullet behavior, i use it in this game for the crickets and i think works for your case: http://tinyurl.com/hnf7wmf

  • Triforce

    Try Bullet behavior, i use it in this game for the crickets and i think works for your case: http://tinyurl.com/hnf7wmf

    Josek5494

    Downloaded and tested, yeah that's what im looking for, do you only use bullet behavior? (+Physics?)

  • Look up sine behavior because thats what your going to need.

    How do you think it would look with Sine?

    one going Horizontal and one vertical? (This makes it go Diagonal)

    I mean

    That works sure, looks like a fish jumping but it also goes backwards then,

  • Triforce

    Only bullet behavior. First set the acceleration and speed values. Then you only have to spawn your fish in the water, set the angle correctly (make sure the head of the fish is towards the motion direction to make the movement reallistic) and the fish will jump out!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • > Look up sine behavior because thats what your going to need.

    >

    How do you think it would look with Sine?

    one going Horizontal and one vertical? (This makes it go Diagonal)

    I mean

    That works sure, looks like a fish jumping but it also goes backwards then,

    That's why i use bullet, because when the fish jumps, and then go again into the water, it keeps going down till is out of the layout. In that moment you can check if object is out and destroy it, avoiding any type of trouble.

  • Triforce Josek5494 Yeah your right I didn't think it through. If you used sine then when the fish landed in the water you would have to reset its position through code, which isn't optimal. Bullet behavior is a lot better option indeed.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)