lionz's Recent Forum Activity

  • Yes the issue will be somewhere else. Your farmercount will still be 2 because of broken logic elsewhere, you can check what the value of the global var is in debug mode to see if it does actually go to 3. Move this into a private message though as this will just become a spam thread.

  • Since you are using specific counts that are true or false you don't need to use else or while. You were using else wrong in that example as well but you don't really need it. You do not need to make it so complicated in that image trying to embed a bunch of conditions that are not required. You've also embedded while farmercount = 2 when farmercount = 1 which can never be true. You just need :

    farmercount = 1, every 2 seconds, add 1 to food

    farmercount = 2, every 2 seconds, add 3 to food

    farmercount = 3, every 3 seconds, add 12 to food

    As separate events. No weird embedding of whiles and elses please. Try that and see what happens.

  • What is wrong with doing :

    farmercount = 1, every 2 seconds, add 1 to food

    farmercount = 2, every 2 seconds, add 5 to food

    farmercount = 3, every 3 seconds, add 12 to food

    or maybe i missed something with the logic of the game.

  • Oh okay, I find it better to have the colour as a variable on the player and then set the animation based on the variable name. I have made you a file here to demonstrate it, if you have any problems let me know.

    https://www.dropbox.com/s/sc2tlsffl50jt ... 1.c3p?dl=0

    Your events look ok but that would only work if you were overlapping the blue circle when your animation is yellow. In the video you are overlapping the yellow circle when your animation is blue. Possibly you are saying that change in animation to green was not working, there could be another reason for that. Check out my logic anyway it should help you with the use of conditions.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hiya, could you explain what the issue is with the game in the video? It looks like it is doing what I would expect it to do, you overlap yellow and he turns yellow etc. Overlapping is simply checking when the collision polygon of one object overlaps with the collision polygon of another, the 'is overlapping' condition is true when that overlap occurs.

  • Select the layout then in layout properties on the left select the box for 'Show grid' , and 'Snap to grid' to move objects on the grid.

  • If it's not as simple as overlapping an object and changing to that colour then you'll have to draw something or provide a C3 file to look at because all I have to go off is that explanation in the original post and it's not 100% clear what you are trying to do.

  • If it's this geo data then I guess one request on app load then lock it out. You can make the request with the condition that a variable is true, then set the variable to false to block out further requests.

  • Just create different animations for the protagonist and set the animation to match what's going on with the object pick up, you don't need to destroy the object.

  • When you change layout it executes all of the events for the related event sheet and all included event sheets. if you have set the request action on start of layout or to trigger once then it will run once every time you switch to a layout that is linked to an event sheet that has the ajax events included. I don't know enough about ajax to know if multiple requests is even a problem though.

  • Set up 9 moles and make them invisible. Give them an instance variable and ID number so you can identify them. Then choose 1-9 to pick them at random and make them visible for a few seconds, animate then invisible again.

  • Aw I thought it fit snugly within the object at scale 1, nevermind

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 75 followers

Trophy Case

  • 11-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

24/44
How to earn trophies