ramones's Recent Forum Activity

  • You can double-click (or right-click -> open) the file in C2 to open it and then edit and save. Or if you have the project saved as a project folder you can edit the file in the folder directly.

  • 1. Save game is separate from local storage / web storage. You shouldn't be affected by that.

    2. That change only affected expressions that you type yourself.

  • If you use a whole number in an expression, C2 treats it as an integer and truncates it. If your numbers are stored in variables it's not a problem.

    set text to 999999999999 * 999999999999   
    => 2003762205206896600
    
    num1 = 999999999999
    num2 = 999999999999
    set text to num1 * num2
    => 9.99999999998e+23
    [/code:358333yf]
    
    If you want to use a large number in an expression, use a float:
    [code:358333yf]
    set text to 999999999999.0 * 999999999999.0
    => 9.99999999998e+23
    [/code:358333yf]
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • On tick count 10, event 1 sets the green sprite y to 85 so it's overlapping the bottom purple sprite.

    Then event 2 checks for collisions between each pair of green and purple sprites. First it checks if the green sprite is overlapping the bottom purple sprite (which it is) so it sets y to 45 and appends the UID. Then it checks if the green sprite is overlapping the top sprite (which it now is) so it sets y to 45 and appends the UID again.

  • Flood fill maybe?

  • That's the way "load image from url" works. It will update the image for all sprites. You'd have to load the image into a different frame.

  • Set the spray cone to 0 and then set the X/Y randomiser values to spread it out.

    particleLine.capx

  • The problem there is that when there are no SP_001 sprites on the layout then SP_001.Width and SP_001.Height will return 0. All the sprites are being created at (0, 0).

  • I'm sure he meant in C2 / the manual. But yeah regular expressions can be used in most programming languages and there are lots of guides out there.

  • Did you check if that's the correct IP address for your computer? (192.168.0.101) If that's right, maybe try a different port number.

  • The basic idea is:

    The random numbers that you get from the random number generator depend on the initial number that is used to seed it. If you start with the same seed then you get the same sequence of "random" numbers every time.

    You take a random number generator that lets you specify a seed. You give it a random seed and then generate your level. Generate a random x position for an object, generate a random y position for an object, generate a random number of enemies, etc. You save the seed for later. When you want to recreate that same level, you just use reseed the random number generator with the stored value and create the level again. Same random numbers = same layout.

    Here's an example using the RandomPlus plugin:

    randomSeedExample.capx

ramones's avatar

ramones

Member since 17 Apr, 2012

Twitter
ramones has 4 followers

Trophy Case

  • 12-Year Club
  • x4
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

15/44
How to earn trophies