luke7eco's Recent Forum Activity

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

luke7eco's avatar

luke7eco

Member since 28 Nov, 2020

None one is following luke7eco yet!

Trophy Case

  • 4-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

8/44
How to earn trophies