oceldot's Recent Forum Activity

  • well you are setting localkey level1 to 3 and you are not resetting it I guess, so those webstorage commands are never executed again..

    Hm, the local key "Level1" is not related here. This is controlling something else and is behaving as expected.

  • Could you please provide a capx or show your events so we can see how you have set this up?

    If you are saving the value the correct way, it should work..

    Sure, sorry about that. It's a bit messy, hope you'll understand.

    I'm using quite a few other keys, and they are working fine. However, this "Time_Level1" seems to be set only the first time I complete the level for some reason. I was hoping to update it every time I run the level.

    [attachment=1:1tolgfdh][/attachment:1tolgfdh]

    And here is a part of my level selection layout, where I display the value (which is working fine it seems).

    [attachment=0:1tolgfdh][/attachment:1tolgfdh]

    I really don't see what the problem is.

  • I have also tried to remove the key on start of layout, and then something like:

    Local key "Time_LevelX" not exists -> Set local key "Time_LevelX" to Timer_LevelX (the global variable)

    However, this way it is just deleted when I start the layout and never created again...

  • Hi,

    I struggle with setting the value of a key. I want it to overwrite the existing value every time I play a level, so that you at all times can see the latest score on each level.

    What I have done so far is to create a global variable which I use as a timer (one for each level), adding 1 to this variable every second.

    Then, at the end of the level, I do something like: Set local key "Time_LevelX" to Timer_LevelX

    Then I display this in a level selection layout like this: Set text to WebStorage.LocalValue("Time_LevelX")

    The problem is that is seems to only be storing the key the first time I finish the level. If I try again, it doesn't get updated, and I'm stuck with same time every time.

    Could someone please explain why is it not updating the value?

  • From the "Performance Tips" section of the manual:

    Changing Text objects every tick

    Change the size or text of a Text object every tick - even just for an animation or transition - will likely produce poor performance, especially on mobile devices. The problem is even worse if the text object is large. Text rendering is very fast as long as the object is not changing, but upon changing the object must do a relatively expensive redraw of the text and replacement of the cached texture. Try to use small Text objects that do not change regularly. If you must change text regularly, consider using a Sprite Font instead, which is fast even when it changes every tick.

    I see. Thanks.

  • I'm making a game where I'm using similar functionality as seen below. Problem is that is shows a major drop in fps right at the start of the layout (tested on Nexus 5).

    It's really annoying and I was hoping I could find a way to improve or it. Does anyone have any idea of to make it run smoother?

    [attachment=1:256wf4ik][/attachment:256wf4ik]

    [attachment=0:256wf4ik][/attachment:256wf4ik]

  • Am I the only one who is experiencing an issue when using the On Left/Right button clicked event? As far as I can see it happens when I use it with addition of system variables (when left mouse button clicked -> add 1 to system variable x).

    If I set this up to use the left button for adding 1, it will add 2 when I click with the left button. With this setup, I can click right button to add 1 (strange, as I haven't even set up right button to do anything). And visa versa, if I change to add 1 when clicking the right button, this will add 2, and left button will now add 1.

    Does that make any sense at all?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is this happening when using XDK version 1199? I just downloaded that today and noticed some changes, and I believe I got a similar error message. I was able to build using Android Legacy. However, it seemed I have some issues using this method (lagging, sound cutting off etc). Only just started using it, so there may be more issues. If someone could help figure out how to set things up to be able to use the new Crosswalk for Android Cordova build method, that would be awesome.

    Edit: I also notice I'm not able to use browser close action to exit the game.

  • I'm asking out of curiousity here, as I haven't been able to find anything quite as I have in mind. It might not be possible, but I wonder if it's somehow possible to create a game/app using C2 which allows players/users to connect and plot their location using geolocation and add an image taken at that location so that other players/users can see them? Can the Multiplayer object allow this in some way, sending images back and forth rather than sending for example information about your ingame avatar?

  • Thanks for your suggestion. Any idea why this could happen?

    Luckily I'm using Dropbox, and was able to open a version of the project file dating a day or two back. I think I saved some work there, as system restore suggested a week or so back.

  • Can't find it

  • Problem Description

    I'm starting to get quite annoyed by this to be honest. I have basically since I started using Construct had issues opening up my project after closing the program. Usually I have been able to open an automatically saved backup, but now I can't even do that. Is there anything you can help me with? I can't find any other files and I don't want to start all over again

    Attach a Capx

    [attachment=2:1uwo6u8a][/attachment:1uwo6u8a]

    [attachment=1:1uwo6u8a][/attachment:1uwo6u8a]

    Description of Capx

    My project file and an automatically saved backup, none of which I'm able to open anymore.

    Steps to Reproduce Bug

    • Open any of the files

    Observed Result

    Error message:

    [attachment=0:1uwo6u8a][/attachment:1uwo6u8a]

    Expected Result

    File opens

    Affected Browsers

    NA

    Operating System and Service Pack

    Win 7 SP 1

    Construct 2 Version ID

    Release 173

    Edit: As for the file mentioned in the error message, I can't find the folder named cap4KKIJ.

    Sorry if the names are confusing. "Balls Deep" was the working title. Now it is "(R)evolve", which I changed in Construct, but I still continued saving in the folder for "balls deep" if that clears anything up.

oceldot's avatar

oceldot

Member since 23 Feb, 2014

None one is following oceldot yet!

Connect with oceldot

Trophy Case

  • 10-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

12/44
How to earn trophies