Pokki and site problem

0 favourites
From the Asset Store
A set of vector game assets contains ground tiles and several objects, used for creating platformer games
  • Of course had to try Space Blaster as test, works nicely. Thanks Fuged.

    <img src="http://i290.photobucket.com/albums/ll241/fatalox/blaster.png" border="0" />

  • Thanks for the tutorial :)!

  • This is a nice tutorial, but for those who wish to have their "pokkies" approved should have minimize button and instant splash screen when opening.

  • Great tutorial! Thanks alot... :)

  • Has anyone got minimize to work? I can get their little "button" on there (not the actual image since that doesn't show up), but when it mimimizes the game is still playing on the background. I believe that as soon as we get this working, it should be ready to submit.

    EDIT : nevermind, figured out the minimized button thing. was looking at the wrong CSS file the whole time (duh). Still can't figure how to stop the game from running while its minimized though.

  • Has anyone got minimize to work? I can get their little "button" on there (not the actual image since that doesn't show up), but when it mimimizes the game is still playing on the background. I believe that as soon as we get this working, it should be ready to submit.

    EDIT : nevermind, figured out the minimized button thing. was looking at the wrong CSS file the whole time (duh). Still can't figure how to stop the game from running while its minimized though.

    Is there any info on how to add Pokki minimize button?

    Updated the tutorial with a minimized button tutorial and an example file.

    I am also stuck on how to freeze my program when it is minimized. Try the Pokki Atom Example and try add some code from the app.js and popup.js into c2runtime.js but have no luck here.

    If any one finds out how, let me now so I can added it to the tutorial.

  • I pass "popup_hidden", "popup_shown" event into event sheet by custom plugin.

    In event sheet, using "popup_hidden" as condition to set "pause", and "popup_shown" for "resume".

    However, it's not really stop running, just "pause" it.

  • That maybe what we need for it though, just to pause it during minified. Would you mind sharing that SDK rexrainbow?

  • I would be intrested having it too :)

  • A lazy wrapper from C2 to Pokki

    Here is a lazy wrapper to put C2 exported files into Pokki.

    Usage: just copy all c2 exported files into folder.

    Before copy:

    <img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/file-8.png" border="0">

    After copy:

    <img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/file-9.png" border="0">

    To change window size, edit width and height in popup.html in folder.

    <canvas id="c2canvas" width="640" height="480" oncontextmenu="return false;" onselectstart="return false;"> 

    BTW, the default folder is a "hello world" made by C2, you can add it to Pokki for testing.

    Pokki plugin is a small plugin, simply pass 'popup_hidden', 'popup_shown' event from Pokki to C2 event sheet.

    You might need to have "lazy wrapper" environment to use pokki plugin since it need "Pokki" object in javascript runtime.

  • This is great rexrainbow. Thank you.

  • Thanks rex, works great during the popup hidden but doesn't seem to activate when popup_shown? Does it work this way for anyone else?

  • The hidden function is working perfectly for me. So now I need to fix the minimize button.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Cryptwalker

    For making "pause", "popup_shown" is designed to trigger after "popup_hidden". Since you should do "pause" at "popup_hidden", then "resume" at "popup_shown" after "pause".

  • Cryptwalker

    I'll make a example to explain it latter.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)