chrisbrobs's Forum Posts

  • vtrix...thanks for helping me with this project...

    I have a couple more questions regarding local storage?

    Your 'hashtoweb storage' saves the sprite details in the folder-

    C:\Users\Administrator\Local Settings\Application Data\Google\Chrome\User Data\Profile 7\Local Storage

    The file is named-

    http_localhost_50000.localstorage (on my system anyway)

    My question is...can this file be opened/edited in any text editor?

    I have tried using word, notepad, ultraedit and others?

  • Check 'how-do-i' and 'frequently-asked-questions'-

    Scrolling/Camera section.

    Link

  • Glad you solved it...here's a couple of things you could have tried..i'm only posting this because it took me ages to compose!

    You could try a couple of things depending on what modifications you have made after the crash?

    Change the extension of the corrupt capx to '.rar' and open it with Winrar.

    1, Create a texture with whatever graphics software you have installed, and save it into the relevent project texture folder, naming it 'gatewayexplosion.png'....then try to run it?

    or

    2, Check the folder "C:\WINDOWS\Temp" you might find the project in this folder under a different name....or a copy of the missing texture(renamed).

    If you can find a copy of the texture in the temp folder(probably renamed)...drag it out out, rename it to 'gatewayexplosion.png'and drop it in the relevent folder in the 'caproj' texture folder.

    Hope this helps(and makes sense)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • yes it works,

    example

    so now when added a couple of "states" when pressing savetowebstorage

    it will safe the hashtable with all states to webstorage

    when page refresh it reloads the hashtable from webstorage

    Just tested your example....brilliant.

    I will update post tomorrow(?) after trying to implement into the project.

    Thanks for your help.

    <img src="smileys/smiley4.gif" border="0" align="middle">

  • chrisbrobs

    this is example spritebank + dictionary, you can save and load the sprites by "key" entered into textbox

    example spritebank

    Your example is great...couple of questions ?

    When I enter a 'name', and save/ load everything works.

    After exiting/ restarting the Capx, can I enter a previously saved ref and open it again?

    <img src="smileys/smiley9.gif" border="0" align="middle">

  • Thanks vtrix <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Dictionary was introduced in r91, so not a lot of documentation out yet. There are some details in the release notes.

    Thanks for the info Nimtrix...

    I will have to experiment and wait for a tutorial! <img src="smileys/smiley9.gif" border="0" align="middle">

  • Davioware@

    Hash table in C1 (It's called Dictonary in C2, I guess since it does away with the underlying hash)

    Can't seem to find anything re "Dictionary" in manual or tutorials.

    Will search.

    ---------------------------------------------

    vtrix@

    spritebank could be used, and combining the json data from spritebank with an array or hash, you can load multiple poses.

    I will check the spritebank plugin..see if i can make sense?

    Do you know of any example's that have been posted?

    <img src="smileys/smiley9.gif" border="0" align="middle" />

  • Could somebody please tell me the best method for saving (and loading)

    sprite names, co-ordinates and angles....(similar to 'INI' files in C1)

    I need a way to record and load 2 sets of info..

    1, Start position and angle for multiple sprites.

    2, End position and angle for multiple sprites.

    An example of the app can be tested below-

    Thanks in advance

    <img src="https://dl.dropbox.com/u/22173473/animatesplash.png" border="0">

    Test

  • This is an example a simple animated 'spinner button' using a sprite and text object.

    Not exactly ground-breaking ! but someone might find it usefull.

    <img src="https://dl.dropbox.com/u/22173473/arrowbutton.png" border="0">

    Capx

  • Thanks for your test results guys.

    <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Would somebody please test the following demo, and let me know what FPS its running at?

    I'm using Chrome at about 30 fps

    <img src="https://dl.dropbox.com/u/22173473/Shootdemo.png" border="0">

    Play

    Instructions-

    Shoot the bombs

    Many thanks

  • i look into chrisbrobs example and i wondering how to hell this works :)

    I just added more frames to the animation and moved the origin point slightly on each frame....then set it to loop.

  • Another "shake" example without sine behaviour_

    Capx

  • Not a good idea mixing "Platformer" and "Physics" behaviour !(on the same object)

    You will always have problems.