LittleStain's Forum Posts

  • I guess it would be possible to use the shadow-light-object to achieve this..

    Or you might want to try using Raycasting

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Have a look at containers..

    If you put the healthbar in a container with your enemy it will be linked to the enemy..

    this way if you set the healthbar to enemy.health it will only do it for the linked enemy..

    Another way would be to link both objects using UID..

  • The basic mechanics of a game like that should be relatively easy to create when you have some knowledge on how to work with construct2.

    Look for beginners-tutorials in the tutorial section of this site and return here with specific questions when they arise..

  • Hello LittleStain, I realize that IID is the way to go now, now the question now is:

    Is there a way to retrieve an object based on its IID ?

    I guess UID would be a possible way to go, you could ofcourse also use instance variables..

    If you could give an example of what you'd like to do it would be much easier to answer your question..

    I could tell you every objects has the condition "pick by unique ID", but it could very well be this is not the best solution in your specific case..

  • Perhaps try a "Trigger once while true" condition. This has the effect of pausing any repetitive action sets for around 5 seconds or so, before it will be considered "available for use".

    5 seconds? Where did you get that info?

    As far as I know it will trigger again the moment the event becomes true again after it has been false..

  • Thank you, I already have that plugin LittleStain . Although I don't really see what the big difference is between using that one or just importing the file from the projects tab....

    Biggest difference in my opinion is that you don't have to do anything..

    Just adding it to my project made sure the css I needed to make my openstreetmap work worked..

    So all you'd have to do is add an ID and reference it in your css file and it should work..

    No further actions..

    Adding an ID wasn't even nescessary..

  • There is also the CssImport plugin that might help..

  • Thank You, is the type of Zelda Tutorial but in some point i stopped, don't know how to do..

    You stopped reading/following the tutorial?

    I'm not sure there is an easier way to explain how to make an inventory the way you'd like.

    If this tutorial is too hard, you might want to try to follow some beginners tutorials to understand the basics of creating games with Construct2 and go back to the creating of inventory when you have better understanding..

  • I'm guessing you are using a wait action in the click event..

    I would recommend not doing that, but well..

    Adding a boolean variable to xyz and setting it to true on clicked and false after the creation of the new object might work..

    Then you'd just have to add a condition xyz is not boolean and the player wouldn't be able to click xyz untill the new object is created..

  • This might be it:

    When global variable Score is bigger than global variable Highscore, you are setting the webstorage "highscore" to score, but you are not changing the global variable highscore and as such this condition is true every tick and calls to the webstorage are executed every tick..

  • as far as I know getChildByName is not a construct2 event/expression..

    There are many other ways to pick the right textbox though, if you could explain what it is you want to do at what time?

  • This would work:

    On button clicked

    sprite set frame = choose(0,1,2)

  • Could it be that in your example the initial animationframe is 0, while for this to work properly it should be 1?

  • You could change the is overlapping with on collision and remove the trigger once..

    This example works, just drag and drop the sprites:

    https://dl.dropboxusercontent.com/u/485 ... rames.capx