luke7eco's Forum Posts

  • Local Storage stored as string so convert back the value first to number with 'int'.

    Tried (in both places):

    System Set BestScore to int(LocalStorage.ItemValue)

    But it did not help.

    Added Get item "Best" for both events. And it works even without int(). It it a good solution?

  • Use 'On item get' then set corresponding variable or array from the value.

    I tried like on the screen. Did not help

    Recorded Video of an issue

  • Hi

    When I click multiple times Undo sprite and curStep becomes 1 after next click on it BestScore becomes NaN. How to fix that?

    Additionally: How to save to local storage previous game? So a user could continue to play it later.

    Thanks.

    Tagged:

  • My logic will give you a number of sprites that have moved.

    You want a condition that checks if any sprite has moved.

    So the condition is to check if the variable is greater than 0.

    Does that make sense?

    Figured out how to make what I want with 2 global variables and family variable.

    Anyway, thank you.

  • Using the logic that moves the sprites then at that point you could set a variable to say it 'hasMoved'. Then when you swipe, you check against a global variable, the GV being number of sprites that have variable 'hasMoved' set - for each sprites.hasMoved=true, set GV to sprites.pickedcount.

    I think you misunderstood what I want to receive in "Moves".

    Your logic will give me a number of sprites that have moved.

    I want to show in "Moves" qty of swipes. Currently, I've already received that number but it also adds 1 to "Moves" even if none of the sprites has moved. So I need any condition which will minus 1 (or will add 0) from "Moves" when 0 sprites have moved.

  • Hi

    I have a global variable "Moves" and add 1 to it every time user swipes.

    Also, I have sprites that appear in random positions after each swipe.

    But I can't figure out how to add 1 to "Moves" only when at least 1 of those sprites changes its position. For example, after swipe 2 of 12 sprites moved so we add 1 to "Moves".

    Required: If after swipe 0 sprites move we don't add 1 to "Moves".

    I don't know how to find out the previous positions of X and Y before swiping to compare them with the current.

    Any ideas?

    Thank you.

    Tagged:

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • For the color, you're probably better off using a blend mode on the sprite to show the (opaque) layer's background color rather than add another stacked effect.

    The edges I think is more a matter of resolution, and it will look more smooth/lumpy with a variety of ball sizes. I'll see what I can do about updating the example when I get a chance.

    Also followed the source of the example you posted, it absolutely uses alpha clamping as the base technique - tympanus.net/codrops/2015/03/10/creative-gooey-effects

    Thanks in advance for the updated example with smoother edges :)

  • I know that I can add "Set color" or "Tint mask" effect over the "Alpha clamp" which will make a solid color. But, there is still an issue with edges.

  • Got a visual example of what you are looking for? Alpha clamp should be able to do what you want as far as metaballs/marching squares style effects.

    ex: dropbox.com/s/uz5vxy35vjacptj/MetaballsExample.c3p

    Not really.

    Alpha Clamp visually changes the radius and makes sharp edges and adds gradient.

    I'm searching for a way to make it more beautiful and flat.

    Here is an example: Gooey

  • Hi

    How to make blob/gooey effect between instances of the same object type? Like 2D drops.

    I know that there is an Alpha Clamp effect, but it does not do what I want.

    Thanks

    Tagged:

  • Is there a way to create a custom (own) Effect (which will work as SVG filters) and add it to the layer with SVG Pictures?

    Probably without knowing programming it is too difficult.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads