kkletsgo's Recent Forum Activity

  • Hey everyone.

    I've noticed that whenever I add new, non-default fonts to construct 2 and use them in my games the bottom part of the fonts is missing. It's nothing much, let's say 1 or 2pixels, but still, if you look close enough you can really notice it.

    here is an example

    http://imgur.com/QjkXz9n

    ideas?

  • Hello,

    I think this tutorial is really what you are looking for.

    Hope I helped.

    https://www.scirra.com/tutorials/73/sup ... reen-sizes

  • There you go.. I updated the .capx to also do the conversion to days, hours, minutes and seconds for you

    https://dl.dropboxusercontent.com/u/2560922/mobiledev/forum/saveTimestamp.capx

    As you can see there is no need to store anything else then the unix timestamp.

    OMG. Now I get it!

    I don't know what else I can say besides thank you. Perhaps offer you a bitcoin donation for all your help?

  • Ok, so I found a much easier way to do it.

    I created 4 global variables.

    -seconds

    -minutes

    -hours

    -days

    I then created an event for each and every one of them. Every 1 second add 1 to seconds. Sub-event, compare "seconds" = 60 then set value to 1. Every 60 seconds my "seconds" timer resets to 1. At this point I am figuring out how to compare the "minutes" variable with the "seconds" variable. So when "seconds" reaches 60 I add 1 to the "minutes"

    Repeat the process for hours and day of course.

    I feel I am so close!

  • I am currently not home. But you can have a look at the .capx linked in this topic.

    https://www.scirra.com/forum/viewtopic.php?f=147&t=88746&p=702329&hilit=calendar#p702329

    I know it uses the date plugin.

    Let me know if that does not help you, then I can throw something together sometime this evening.

    I looked at the example you sent me. It seemed pretty complicated at first but once analyzed further it didn't seem that bad. My concern is the actual usability of the .capx given that the example only shows today's date (unless I did something wrong). I don't think I would be needing that in my app, instead, I simply want to show the time since the button has pressed (for example) and count it until the player presses another button. That time might be 20 days 35 hours, 23 mins and 13 seconds or may just be 10 minutes. No rules to that.

    Sorry if I am bothering you too much, it's not that I am a complete noob to construct, but this thing is really making huge problems for me, and given that it is a key to the app I am building, I am really looking into any options for solving it.

    thank you once again!

  • Yeah, good idea. I think I will be able to do that.

    The problem I have now is I don't know how to set the timer. Every time I start it it's just stuck at 0 or 1. Like, the commands for the timer are so confusing that it's driving me crazy.

  • So you are suggesting that I should create a global variable that will save the time once the user leaves the app and then compare the time the user entered the app again with the saved time?

    I think I can make that happen.

    I am not sure how to set the timer yet, I guess I need to play with the plug-in a bit

  • The physics example is really well made.

    As for the visual representation it's all a matter of taste. I find construct to be one of the most flexible visual engines so if you have some good art you could really make your game shine.

  • Hello,

    I have a problem with the timers option in Construct 2. I wanted to create a timer in my project. Let's say when a player presses a button the timer goes on. It stays like that forever, or at least until the player presses the button that restarts it. This means that even when the game is off the timer will keep going. Given these conditions, the timer would need to consist of days, minutes and seconds.

    Now I've created a text object and I gave it a timer behaviour. I played with it for a while but to no luck. I am not really sure what expressions I should use and in what way I could create this kind of a scenario. To add to the confusion, aside from the timer behaviour there is a "timer" expression.

    So yeah, really struggling here.

    Any help?

  • Thank you for your kind words <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    I can finally post links given that my reputation has grown so here is the full link to my app

    https://play.google.com/store/apps/deta ... metryblitz

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey everyone,

    Couple of days ago I published my first game Geometry Blitz.

    Here it is https://play.google.com/store/apps/deta ... metryblitz

    Hope you guys like it, rate it and share it.

  • Thank you, another user answered me literally 5 minutes ago.

    Can't believe I didn't realize this myself.

    Thanks

kkletsgo's avatar

kkletsgo

Member since 16 Feb, 2014

None one is following kkletsgo yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies