brunopalermo's Recent Forum Activity

  • Also, I noticed you were asking about a chance reward on another thread, so I added the functionality here. Just click the enemies to destroy them. They will give a coin (70%), armor (20%) or a special reward (10%).

    Cheers!

  • Hey!

    Here's an example. Click the buttons to change level. At each level it will spawn a number of enemies determined by the array "arLevels".

    Level 1: 2 squares, 5 circles, 0 triangles

    Level 2: 3 squares, 3 circles, 1 triangles

    Level 3: 5 squares, 2 circles, 3 triangles

    Let me know if you have any trouble understanding the code.

    Hope this helps...

    Cheers!

  • It would be easier if we could see your file, but, speaking in general, you just tell the game to spawn different monsters on different levels. You could have an array with the list of monsters to spawn in each level and load it from there.

  • Try Construct 3

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

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

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

brunopalermo's avatar

brunopalermo

Member since 7 Jun, 2013

Twitter
brunopalermo has 6 followers

Connect with brunopalermo

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies