brunopalermo's Forum Posts

  • That's just what I did...

    I just used an object to have a more random color mix.

  • Not sure if that's what you want, but you can download this file and play with particles settings and positions. Also, you can add more emitters.

    I won't charge you for something that took me 5 minutes and one line of code. :)

    Hope this helps...

    Cheers!

  • I guessed it was C2, 'cause were in the C2 forum...

    (Yeah, I get confused sometimes, too)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey!

    It would look like this.

    The variable touchEnabled controls when touches are active. If it's 1, touchs work, else, they don't.

    You must add this condition (if touchEnabled = 1) to all touch actions. When you want to disable touch set touchEnabled to 0 and back to 1 when it's supposed to work again.

    Hope this helps.

    Cheers.

  • Also if size and interval can be calculated with a function you can just drop the array stuff and use a formula instead.

    For instance. Let's say your wave sizes are (5, 10, 15, 20, 25), there's a clear pattern there.

    size = 5 + currentWave * 5

    So you can just use the formula instead of writing a giant array which can be calculated easily.

    Cheers.

  • Hey!

    Check this file.

    I used a string to store the sizes of the waves, cause it's faster, but you should use an array. Also, the time between waves is constant, you should make it variable, in that case use the same array to inform the intervals... Like wavesArray = [[wave 0 size,wave 0 interval],[wave 1 size,wave 1 interval],[wave n size,wave n interval]]

    In case you never used arrays, you can access tyhe info in an array with wavesArray.At(x,y). So, you would use wavesArray.At(currentWave,0) for the size and wavesArray.At(currentWave,1) for the next interval.

    Hope this helps...

    Cheers!

  • Could you elaborate on that?

  • You use NameOfTheObject.ColorValue to access the value.

  • Not sure what you're trying to do, but this file may help.

    Cheers!

  • Glad that helped. Good luck with your game/app.

    Cheers!

  • Yes, you could do that using specific saving slots or using a history array, that is, an array in which you store the last X states as JSON.

    I like the first method.

    It would be something like this:

    And you would call that function before executing any action you want to be undoable.

    Hope this helps...

    Cheers!

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You can scale the layer.

  • Yep! Far faster!