blackhornet's Forum Posts

  • Try this:

    squirrels146.capx

  • You are far better off using the Timer behaviour. Wait is the most misunderstood & misused mechanism C2 has, in my opinion. People expect it to block, but it does not (the whole game would lock up if it did).

  • The built in Array.Sort does support strings.

  • Move Canvas:'Begin path' to 'Every tick'. It is inside the for-loop.

  • A CAPX is just a ZIP file, so make a copy, change the name to Hei.zip and open it up. Copy everything out to somewhere else. Now you can navigate to the Textures folder and you'll see that Tile3.png is missing. If you can figure out which image that is, put it there with the name Tile3.png, or just put anything there for the moment with that name. Open up the "New Project.caproj" file and tidy up your Tile3 object.

  • You can use Families to check for collisions etc against the same object. You'll find plenty of examples of this in the forum.

  • You can't insert at an XY coordinate without pushing out the other dimensions. What you've described is essentially the Dictionary. I really wouldn't worry about wasting space just yet. Data is typically much smaller than your graphics/sound in a game anyway, as far as memory is concerned.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The dictionary object would be a better alternative. You definitely don't want to use a UID as an index, as the value can be anything, and you'd need to size the array arbitrarily large. Just merge your level, glyph, UID, and variable name together as a string to make the key. The same key will always get the data back again.

  • I have started. Unfortunately, it's a complete rewrite to get at the outline framework, so it's still going to be a while.

  • Just convert it to int: int("00045")

  • Two things:

    1) From ELevel3+, you have System:Reset global variables to default. Don't!

    2) On every menu select you are setting the current level to levelsprite.level, but this is going to be the value 0 to 5, which is your scoring system. Hard code them to the level numbers; 0,1,2...

  • All of your creates are on Layer 1. You should change it to "Main" so that they are on the correct layer (and will stay on Main should layers move).

  • Make sure you are playing the sound just once. I've seen plenty of people accidentally play the sound repeatedly - it ends up sounding distorted.

  • You can rename most things by selecting the object/variable itself and doing a Rename. You only need to do it once and the name will be changed everywhere for that object.

  • You are setting Y to a constant: 4*cos(3.141516)^2

    It needs to be a function of X, something like: 4*cos(X * _yourfrequencyvalue_)^2