Space Ape's Recent Forum Activity

  • Or great marketing can lead to massive disappointment if a game is junk. There's definitely gotta be some balance, but Beaver is mostly right--people are often dumb enough to try anything if it looks good.

  • jambon

    No problem, buddy. I'm using the nodewebkit functions a lot in my current project, so it was just good timing for you. :)

    Keep in mind that nodewebkit only writes text files, so don't try saving images or other things (at least not any way I've found), but JSON data from dictionaries, arrays, webstorage, variables, etc all work fine.

    Good luck with your project!

  • You could use an instance variable for the lasers and tie that to the beam's width. Have an event check that variable and adjust the width accordingly.

    Or use opacity: as the laser is absorbed, have it fade out until it's 0 and then destroy it.

  • Audio > Stop All

    Take care!

  • Games

    Found this under 'Browser' in the manual:

    "Page is visible

    True if the page the HTML5 game is running on is currently visible. The page counts as hidden if the window is minimised, the page is in a different tab to the one being viewed, or on a mobile device when the app goes in to the background. When the page is hidden the game automatically pauses."

    I haven't used it, but it sounds like it would fit your needs. Add an event 'Browser - Page is Visible'; make your black overlay invisible for that condition and visible on an 'Else' condition.

    Take care!

  • alan349

    Have you already tried setting the character's Y-position when the wrap happens? Record Y, wrap, set Y--he should end up in the same relative position.

    I haven't used the wrap functionality too much, so it may be unavoidable. From your demo, assuming it's just wrap you're using, it definitely seems to reset the character.

    Try setting the X/Y position of the character in relation to the current viewport. Assuming the camera is following the character, that shouldn't affect the view at all. Sort of like manual wrapping?

  • AmpedRobot

    I set up a similar system in a current project and it works pretty good so far. There are 10 songs in the game; upon import, I renamed them to "1" through "10". The game starts and I call 'Play str(round(random(1,10)))...' and add a condition 'On music ended...' (or whatever tag you give the music) and the action 'Play...' with the same settings that started it off.

    I used a Function in this case; at the start of the layout, the music function is called to play the first random song; when a song ends, the Function is called to start a new random song.

    If you want to stop songs from repeating, add a variable that records the name of the last song played and compare it before starting a new song.

    Take care.

  • Try Construct 3

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

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

    Node-webkit seems the ideal solution for your project. I'm working on an offline game, as well, that requires storage.

    JSON data from user-created levels can be written to files with NodeWebkit. Set the path to the UserFolder expression or let them choose where to save it with a dialog--either way should work fine. You can then use WebStorage as a table of contents to index those saved files so the user can browse and find them, as required. If you want to avoid any pitfalls with WebStorage, save an index of user-created files (or whatever dynamic content) to the disk with NodeWebkit and then load that index file during the game. I.e. save a JSON file, such as an array or dictionary, that can by dynamically edited during the game.

    Likewise, with game states, the built-in save functionality can return a JSON string which can be written to disk with NodeWebkit. Using the save dialog lets the user choose where to save it, or you can use the UserFolder expression. No matter where the user chooses, you can access the ChosenPath expression to save the location of the file to an index (as mentioned above), so the game knows where everything was saved.

    Good luck, sir.

  • Greetings.

    After combing through the forums, I've exhausted all the suggestions on how to save a CanvasSnapshot to disk in node-webkit. When in a browser, the image will download just as any normal file without a hitch--same if it's opened in a new window.

    In node-webkit, whether windowed or full-screen, the download does not initiate. Also, showing the CanvasSnapshot in a new window doesn't enable any right-click 'Save As...' functionality. Saving the file to disk doesn't work, either, as node-webkit writes text to files.

    In the game, there is a simple camera button that takes a canvas snapshot and should allow the player to save that file somehow. No issues in a browser but node-webkit is defying every attempt to save it.

    If anyone knows of a way, or can find something to try, I'd greatly appreciate the help!

  • Will do, Ashley--thanks for the response.

    I made some changes last night and didn't get the error window. I was playing sounds with the regular 'Play' action from the Audio object when this was happening; I changed it to 'Play (by name)', allowing me to select the Sounds or Music project folder.

    I don't if it resolved it completely, but so far it's longer between seeing it.

    I was holding out for the next stable release, but this is happening often enough to warrant trying the beta.

  • Hey folks,

    I got a 'Alert' window while previewing a project; I've never seen it before and can't track down what it's referring to--anyone seen this before or have an idea what it is?

    Javascript error!

    Uncaught TypeError: Cannot call method 'tick' of undefined localhost/Audio_plugin.js, line 2575 (col undefined)

    EDIT: using release 146 (last stable) with no extra plugins beyond the stock ones

  • RookieDev - tulamide is undoubtedly correct; however, I was offering clearing the array as an alternative, not the best, method. I'd recommend just using one array and use the X coordinate of the array to determine which biome you're in. If forests are 1 and jungles 2, then 1, Y, Z is wide open for anything to do with that biome... use X as an index to tell the game which biome to use, then just switch that variable (such as a global variable) to tell the array to read a different X.

    Either way, best of luck, amigo.

Space Ape's avatar

Space Ape

Member since 2 Dec, 2012

None one is following Space Ape yet!

Connect with Space Ape

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies