Hong's Recent Forum Activity

  • Hey again, I need help on making a ' water splash ' spawn when object interacted with river. I made the splashing animation but I'm not sure how to make it spawn on the position where the object interact. Can someone help me with this? thanks.

    Let me know if you need the capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm pretty sure a venus fly trap doesn't move until it is ready to strike...

    So probably just need a few different animations and change the animation when player gets close. Compare X to see which side the player is on.

    Or use separate sprites for head and stem (ignore my ignorance of plant terms). Then set angle of head to player so it is always pointing towards the player and follows him.

    Thank you very much for the response ! will try it out !

  • So... the topic kinda says it all, I'm just not sure how to make the movement of the enemy like venus fly trap by eating enemy / hero...

  • myvariable is the base speed of the water. As you hold down fire, the base speed at which it is created increases. The expression min() returns the smallest of the two values, in this case either myvariable+50, or 2000. This constrains the maximum of myvariable to 2000. If myvariable is already 2000, myvariable+50=2050. So min(2050,2000) will give you the smaller number, or 2000.

    As a result, as long as the mouse is held down, myvariable will increase 50 every tick until 2000.

    Okay thanks for the explaining, but I'm still not sure why the myvariables is set as 0?

    EDIT.

    OKAY, i figured it out, meaning myvariable = 0 is the starting of a value before the increment of 50 ? am i right

    But still, why do you need to add " Sprite bullet speed to myvariables+random() ? " when the speed increment value is 50... right?

  • Here is an example to get you started. dropbox.com/s/0ru37dkgyhqvi ... .capx?dl=0

    It will take some rather advanced artistic skill to make it actually look like water though.

    Omg thanks for the tutorial / example.

    But i have a question on, what's this for or what does this variable means? " min(myvariable+50,2000) "

  • I have just been trying out construct 2 for a few days, but I am not facing this issue on learning how to shoot water out from a gun, where the water works similar to real life. Such as, holding the key will continue the water shooting, until when I let go of the key, the water will slowly stop shooting out.

    Sorry, bad english...

Hong's avatar

Hong

Member since 20 Sep, 2016

None one is following Hong yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies