lionz's Recent Forum Activity

  • Adjusting the layers to be consistent was only a possible fix for the player appearing behind objects, is that fixed now? You didn't mention it. The extra objects appearing, there is probably a simple reason but it's only speculation without seeing the file.

  • Not sure if array is totally required for this although it could act as a way to view all data. In the end you will be pulling variable data into the array and those variables would be good enough. So a farm would have production type which is a string variable, number of stored or created products, production time/speed as number variables etc.

    If I was to put all this data in an array, what you can do is give each building an identifier which is the position or row in the array. Then with logic you link up the building's values to the array, so type = array.at(building.arrayposition,0), production time = array.at(building.arrayposition,1). This would allow all buildings to put their data into the array with very little code.

    Also I would advise putting all buildings into a buildings family for this, so you do not have duplicate code referencing different buildings, farm.arrayposition,0 and mill.arrayposition,0 become building.arrayposition,0 if you use families and family instance variables to group them.

  • Now that I think about it some more you might not have to convert them to int, should just display fine as they are in the array? You just need to put the text logic separately without the int.

  • So it's a guessing game? Level 2 probably has fewer layers so the player moves to a lower layer and is behind objects. The extra objects are either because you added them in the level 2 layout (you shouldn't if objects are global as they continue through), or you have logic that creates the player and crosshairs 'on start of layout' which you also don't need if the objects are global.

  • I'm confused myself. You're supposed to place it in the level. When you do this it is an instance of the same object so the same tilemap. Then you can draw on it with the same tileset as before. At the moment you're just clicking on it on the right side? It doesn't show up by clicking on it, you have to place it in the level. When you place the tilemap in level 1 you are creating instance 1, when you place the tilemap in level 2 you are creating instance 2, of the same object. You can draw on them separately in each layout. You don't for example need to create a second tilemap object.

  • The second image doesn't seem to show a tilemap placed in the layout or selected. Usually if you do that in another layout it has the same tileset image loaded with it because it's the same object.

  • When you say you want to reuse the same tilemap what precisely do you mean?

  • Ya I tell you above, instead of random use 'choose'. This is what you are looking for to choose between the 2 options yes? Replace random with choose.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Which tutorial? choose(a,b) allows you to pick between 2 things. Add this where you set the variable to right.

  • Show me a screenshot of your event with the direction variable and I can help.

  • Nice, good luck! I always follow and purchase Construct-made Steam games.

  • set variable to choose("left","right")

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 79 followers

Trophy Case

  • 12-Year Club
  • 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
  • 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
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

25/44
How to earn trophies