water example

This forum is currently in read-only mode.
From the Asset Store
Unlock platyers earning coins, and save it with Localstorage
  • hi guys!

    i had some big issues understanding the water behavior in the example .cap posted by rojohound in this thread:

    the effect is brilliant,but after spending alot of time trying to understand how it works i just got frustrated. is there anyone who would like to break it down for me and explain the basic idea and behavior of those few lines of code?

    is it possible to have multiple instances of those water "puddles" ? meaning that i could scatter small puddles all over the level (layout)? i didnt have any luck with that and now i feel completely stupid <img src="smileys/smiley5.gif" border="0" align="middle">

    arrays are pretty alien to me still. also, i get stupid everytime i see "loopindex" lol , it scares me. <img src="smileys/smiley36.gif" border="0" align="middle">

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Basically, It remembers the previous 2 frames, then uses them to affect the data.

    Honestly, you're better off trying to recreate the effect yourself by looking at that site, you'll understand the basics and be able to adapt them to your own implementation. Don't feel bad if you don't understand it right away, it's tricky.

    However, if you don't know what loopindex is, or aren't experienced in "real programming" (ie, algorithm design, with traditional programming methods) then this might be a bit too complicated to understand for now, but don't let that stop you from trying.

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