lionz's Forum Posts

  • You could set the first instance variable to a global or local variable and compare that against the other instance.

  • Depends how you are making it but the text should relate to the block in some way. You are using ball on collision with block set text? You can put the variables for hp on one of the objects, i prefer block, and have the block and text in a container so they relate to each other.

  • Delete the 3rd event and move the find path action to the 2nd event.

  • Post screen of the event

  • If you use a condition such as enemy.UID = num, then when you use the find path to enemy action it will pick that enemy.

  • It's because at the start of the game the inventory doesnt contain the name, but once theyre added then the inventory does contain the name, it doesnt run the logic for creating the objects on future layouts.

  • You should be using test mode when testing until the app is published. Since you tried it without test mode I'm not sure on the expected outcome, you are at risk of your account being closed if you test like this. I don't know if real adverts should be shown, I guess they could be, but since test adverts are working fine then you should first publish the app then and if the real adverts are working.

  • Where are you testing it? What do you mean when you say it isnt working?

  • The fix is to sort out the image point, it looks like it isnt in the centre of the base object? You can reset it in the image editor. Or its possible that the image point is off on the other object, the knight. Make sure the image point 0 are both in the centre of the objects and it should work.

  • Difficult to guess this without the file but I would make sure te second layout is definitely linked with the event sheet and not set to 'none'. If it is actually linked then there must be a problem with data like with the array or something.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can either make the item bar global so that it is showing the same data through layouts without calling the function again (objects are not destroyed), or you can add the function on start of layout to all event sheets that are linked to the layouts.

  • There is a Persist behaviour, you add this to any objects and they keep their state and variables when you return to the layout.

  • If you are already using an array to store the items by name then you should use the array to store the amount, in the next row or column. Then you can compare using the array each time, find name and the amount is at the same position.

    The logic in the function would become something like, array contains name, find co-ordinate of name. lets say co-ordinate is 3,0 - add 1 to 3,1 (amount stored in next column).

  • >

    thank you for the reply!

    I remember trying to do this method but I couldn't get the code on how to generate the matching row for the other value, if that makes sense.

    In other words, I could pick a random value from the meaning part but I didn't know how to get the matching word part, if that makes sense.

    If all of the questions are at X,1 and all of the answers are at X,2, then all you need is X. So if x is 6 then the question is at 6,1 of the array and the answer is at 6,2. So the question is randomnum,1 and the matching answer is randomnum,2 every time.

  • Maybe the base is in the correct place but the knight is pinned below in the wrong position? Make the base visible so you can see where it is in game. what logic did you use to fix the knight to the player movement sprite?