kkletsgo's Forum Posts

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • 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

  • YAIKES!

    Thank you. I feel like an idiot for not changing the x to an y axis. The funny thing is that I thought that that was the first thing I did, and that it didn't work. Thank you for your help.

    Also thanks for the suggestion on background size. Will change it for sure

  • Her everyone.

    I started making another game with construct. Right from the start I encountered a problem. I can't seem to make my background scroll indefinitely. I tried adapting the actions from the infinite runner template but alas, to no success. I'm attaching my .capx, maybe some of you good folks will have a solution for my problem. Basically I need my background to scroll infinitely so that my character can be falling down forever, as long as it doesn't collide with other objects (to be added later).

    Thanks

    https://www.dropbox.com/s/rq9kmp9ypp4x8cj/test.capx

  • Anyone?

  • Hey Hardty,

    Check this tutorial, it's pretty self-explanatory and very helpful.

    Subscribe to Construct videos now
  • Her everyone.

    I started making another game with construct. Right from the start I encountered a problem. I can't seem to make my background scroll indefinitely. I tried adapting the actions from the infinite runner template but alas, to no success. I'm attaching my .capx, maybe some of you good folks will have a solution for my problem. Basically I need my background to scroll infinitely so that my character can be falling down forever, as long as it doesn't collide with other objects (to be added later).

    Thanks

    https://www.dropbox.com/s/rq9kmp9ypp4x8cj/test.capx

  • Ok, I will be doing further tests and will inform you on my findings.

    Thank you for your help nonetheless