ScrubStorm's Recent Forum Activity

  • Thanks! I appreciate it.

  • I used globals, and it worked very nicely! Thanks to the both of you. Just as a little extra question: I set up a way to build with certain blocks, grass and dirt. Every time I place grass, it subtracts 1 from the grass variable, and same with the dirt block and it's variable. The problem I'm having is that I can spam a block on the same tile, and the variable keeps subtracting. Is there any way to make sure that if I'm placing a block, I can't place it on another one?

    Here's a link to my video: youtube.com/watch ... e=youtu.be

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So I'm making a sort of sandbox crafting game along the lines of Terraria and Starbound. I have a tilemap that has the blocks that I'm making the world out of. I currently have grass and dirt. What I would like to happen in the game, is when I click on grass, it adds a value to a global variable: "grass," and when I click on dirt, it adds a value to a global variable: "dirt." And when I place grass, it subtracts 1 from the "grass" variable, and same with dirt. The problem is, no matter what tile I click, it adds 1 to the variables I currently have set up, which are grass and dirt. I'm also confused because even if I click on nothing, as long as it's within the tilemap's borders, it'll still add 1 to the grass and dirt variables. In the current game, I have in the event sheet, when the tilemap itself is clicked on, it adds to the grass variable. I know that's causing the problem; I just don't know how to add another condition that triggers the event when only grass is clicked on, or only dirt is clicked on.

    Basically, to sum it up, I'm looking for a way to have the game add to only the grass variable when I click on grass. Same with other blocks and their variables once I add them. I'm totally new to Construct 2, so I might not understand anything complex

ScrubStorm's avatar

ScrubStorm

Member since 27 Feb, 2017

None one is following ScrubStorm yet!

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies