totoyan's Recent Forum Activity

  • Vegamon007 thanks a lot!

  • nice idea! but it is nice to their creator?

  • In lots of events i need to add a "wait 0 second" between two actions, sometime it's not enough then i add twice.

  • wow nice job!

  • Thanks for sharing!

  • Awesome! thanks!

  • Here try this

    http://headbangames.com/localstorage.capx

    OMG, i forgot the condition event " on canvas snapshot " and set localstorage value directly.

    now it works!

    thanks a lot !!!

  • don't wait in the same event to check for item exists, it'll probably take more than 1 tick.

    Add another event,

    - localstorage - On Item Set "snapshot"

    text set text"Snapshot exists"

    -- sprite load image from LocalStorage.ItemValue

    thanks your reply,

    i had been commented the "wait event",

    and i add your advised events but doesn't work...

  • there comes with a issue about the CanvasSnapshot,

    e.g.

    first test:

    -on the start of layout -- system take snapshot of canvas

    -- LoacalStorage set item "snapshot" to CanvasSnapshot

    //-- wait 0 second

    -- check "snapshot" exists

    -on " sanpshot" exists -- text set text"Snapshot exists"

    -- sprite load image from LocalStorage.ItemValue

    then, text shows "Snapshot exists", but sprite load nothing...

    another way the same step:

    -on the start of layout -- system take snapshot of canvas

    -- LoacalStorage set item "snapshot" to CanvasSnapshot

    //-- wait 0 second

    -- check "snapshot" exists

    -on " sanpshot" exists -- text set text"Snapshot exists"

    -- sprite load image from CanvasSnapshot

    then, text shows "Snapshot exists", and sprite load the CanvasSnapshot

    so does the localstorage cannot save the CanvasSnapshot?

    how can i take the CanvasSnapshot then save it or load it?

    looking forward to your replies, thanks!

  • can you help me that when i destroy the spine obj ,it logs a warming...

    e.g.

    on start of layout--spine destroy

    then,

    log " JS error! can not read property 'load' of null"

    please 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
  • totoyan

    I am new to Construct 2, so I can only help you with useful links to something you want to do.

    I found what you are looking for in this post for Braid game rewinding time:

    https://www.scirra.com/ forum/ time-rewind-demo-like-in-braid_t60966

    And this:

    https://www.scirra.com/ tutorials/ 748/record-and-rewinds-system-similar-to-braid

    Nice job! i need them, thanks your kindly help so much!!!

  • Have you seen these tutorials? (sorry for the spaces in links, remove them after copy/paste)

    Look at Timescaling step

    https://www.scirra.com/ tutorials/ 67/ delta-time-and-framerate-independence

    Timers

    https://www.scirra.com/ tutorials/ 450/ timers

    thanks your suggestion, but actually, i want to know how to make the whole game back in time, all things return back. for example, OBJ A takes player 3s to jump from Position B to Position C, then i press a button, A will back to C, and the time back in 0s.

totoyan's avatar

totoyan

Member since 11 May, 2015

None one is following totoyan yet!

Trophy Case

  • 9-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies