lionz's Forum Posts

  • I wouldn't use pathfinding at all unless it's a top down game. For side scrolling platformer you can use line of sight and move X.

  • Why have you put the origin point in the top left corner? Put it at 16,16 in the centre and the object is fine...

  • What you're looking for is how to use them in your events which noone seemed to mention, it's set position to object.imagepointx(0), object.imagepointy(0) where the number in brackets is the imagepoint. 0 is default origin but you can use imagepointx(1), imagepointx(2) etc or even by name if you renamed them i.e. imagepointx("Weapon")

  • Create a bunch of events that relate to a variable number, i.e. if 1 then spawn this pattern, if 2 then spawn this pattern. This could be in one event, a function that you pass a variable parameter through. Then every x seconds or whatever timing is required for spawning the next set piece you can use 'choose' i.e. choose (1,2,3,4) or 'random' i.e. random (0,5) to pick a random number which you can then put through the function and spawn the relevant set piece.

  • Look at the Audio object action : Set master volume

    Set the overall volume that is applied to all audio playback.

  • I would just use sprites for drag/drop and events, and pin the text to the sprite.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So you need help with a third party app called Game Center?

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

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