donelwero's Forum Posts

  • HZGaming worked on preview but not when exported to crosswalk for Android.

    Any help would be appreciated.

  • Ok, I messed up assingning the values at start of the app. Thanks HZGaming if it wasn't for your help I would have trashed everything about webstorage, you made me look again and find my dumb mistake.

  • Hi. I'm finisihing my first project but there's something I want to implement but haven't really been able to figure out how to do it using Construct features.

    I want to publish my app to the android market. I'm trying to create a variable that the game will load every time it starts, and it's not restarted even after the game was closed, phone turned off, etc. If the player dies 20 times in one play, closes the app, starts playing again and the deadths counter loads that variable and shows that he has already died 20 times.

    I tried using webstorage but doesn't really seem to work. I'm using clay.io for leaderboards and achievements and I saw there's some kind of data storage but, I don't know how to use it, besides the user will need access to internet to be able to fetch that data.

    Hope you guys can help me, thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks Zathan I was thinking of making tests with it, that saves me a lot of trouble and wasted time.

  • Zathan thanks! I'll check it out.

    There's a Google Game services plugin in Construct, what is that plugin for?

    Can I export using Crosswalk and use the Google Games services plugin?

  • Hi, this is my fist project or at least the very first I get to complete, so I wanted to ask you guys, in your conisderation what's the best API for leaderboard management.

    I've seen a lot of threads where clay.io is mentioned but, I would like to know from you guys before I start using clay.io.

    Im planning to release the game on Google Play btw.

  • Hey lowkicker, what Minor did is really easy, I think you should stop by the tutorials section to learn a little bit more about the basics of Construct 2.

    Minor created two variables (score, object_create) where the score is stored and one where the points that will be added to the score are stored (points), he is using object_create to check if the score is greater or equal to 10, when than happens 10 points are substracted from object_create so that the system can evaluate that condition again. You could skip the usage of the points variable, but it's always better to have variables to store things like that, so you know where things that modify your score or another important things of your game are.

    The problem with MY example is that only one instance of the object is created and the condition is never evaluated again.

  • You have to use System ---> Compare two values and then write what I told you before.

  • Store your score in a global variable then use the modulus operator to check if it's remainder its 0.

    You can then turn the score variable to 0 again or use the trigger once while true so only one object is created.

  • reizmoz

    Sorry, I've been kinda busy and didn't see your message until now. As I said, I'm no expert but, hope this is more like what you were trying to achieve.

  • reizmoz

    Is this what you where trying to do? Press "9" to create another monster.

    I'm no expert but I don't think that those for loops are working the way you want them to.

    I always use the on created for new elements I put in the game.

  • briggybros Thanks, glad to be helpful.

  • briggybros Use the modulus operator. (%)

    You can thest if a number is in the power of two like this numberToCheck % 2 = 0

    The modulus operator is used to get the remainder of the division. So if you do 4/2 you will get 0 as the remainder so that's how you can check if is in the power of 2, if you try with 3/2 you will get 1 as remainder so it wont pass the check.

    Hope that helps, I know my english is not that good.

  • EightMan I haven't tried setting actions while comparing to an animation frame, but you can try adding a System - Every X.X seconds in event 30, try with somethin like 0.3.

    Also, maybe you should try checking for the IsAttacking variable on all your movement events (5,6,7,8) and removing event no. 4. Besides, you are setting the IsAttacking variable on "W is pressed" and everything else to "X is Down", pressed and down are different.

    I can't give it a try right now but, hope that helps.