dop2000's Recent Forum Activity

  • It's not a bug, it's just a different representation of the same data.

  • Yeah, it's confusing that arrays are shown differently. X axis is displayed horizontally in the array editor and vertically in Debug.

  • It may be easier to temporarily disable the object - disable collisions and make it invisible for 10 seconds. Or move it off-screen for 10 seconds, then move back.

    Because 10 seconds is a long period of time, I recommend using Timer behavior instead of "Wait 10 seconds". With Timer you'll have better control - you could pause or cancel the timer if needed.

    So your code might look like this:

  • I made a little demo for you:

    dropbox.com/s/5jd5tsswomp8d1h/TilemapDangerousTiles.c3p

    All mushroom tiles are dangerous. As you step on them, you die.

  • It is not possible to add instance variables to individual tiles. There are several other ways you can achieve this.

    1. You can create another tilemap with the same size. In this tilemap define only a few tiles - for example, tile #1 red which will mean dangerous, tile #2 green is walkable, tile #3 blue is water etc. Make this tilemap invisible and place it on top of your main tilemap.

    When player is moving, check tile number under the player on this second tilemap. If tile id is 1, then kill the player.

    2. If you have many dangerous tile types (spikes/lava/swamp), add their IDs into an array "DangerousTilesArray". When player steps on a tile, check if this tile ID is in the array, then kill the player. You can create similar arrays for other types of tiles, for example "TreasureTiles", "SlowdownTiles".

    3. Similar to previous method, but instead of arrays you can use text global variables. Simply create a variable with the list of tiles:

    Variable DangerousTilesList=,5,99,131,183,200,

    Then check if tile ID is in this list using find() expression.

  • 1.

    Array Set value at 2 to 12909090

    2.

    If you want to calculate the total again, you need to reset the variable to 0 first.

  • 1. I don't understand the problem. If you know the index you want to change, then simply do "Array set value at index ..."

    2. You need to run "Array for each element" loop and add all values to a variable.

    Array for each element
     Add Array.CurValue to TotalVar
    
  • Try this:

    .

  • part12studios Are you making a separate event for every possible pressed key?? Why not use Keyboard.TypedKey expression?

    You will probably need to add a few other conditions to deal with keys like Escape, Backspace etc. But still it will only be 3-5 events, not a hundred!

  • The easiest fix is to pass the runtime itself in method parameters:

    runtime.globalVars.ans=genproblem(runtime.globalVars.n1Digits,runtime.globalVars.n2Digits, runtime.globalVars.operator, runtime);
    
    
    function genproblem(n1digits, n2digits, operator, runtime)
    {
     .......
    }
  • Oh, I didn't realize that each suggestion in your original post is a link.

    Yeah, inverting background color for tilemap toolbar seems like a useful feature.

    As for cropping images on export - still think it's a very bad idea. There are lots of situations where extra transparent space in sprites is added deliberately - for example to enlarge a clickable/touchable area of a small button, or to modify the shape of a character's hitbox. Cropping images will change collision polygons and will break the game in this case. You can also have events that rely on certain sprite dimensions, for example, to create a scrolling background, or events that check BBox* properties of sprites.

    I understand that you are proposing that the feature to crop images will be an optional checkbox. But many people will still unknowingly click it without realizing that the exported game may behave differently than in preview, or contain bugs, or become completely broken.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Most events in Construct are if-events. In your case you can use "System Compare variable" or "System Compare two values" conditions.

    I suggest you start with Documentation and studying a few built-in templates.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 279 followers

Connect with dop2000

Trophy Case

  • 10-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x14
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

30/44
How to earn trophies