Jump to content

Search the Community

Showing results for tags '#states #dialog'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hey everyone! I am a little discouragingly stumped and hopefully my questions will be easily answered / aren't too dumb. My goal is to create an open world space game that allows you to: fly around a solar systemwalk around inside your shipfight enemy shipswalk around space stations and other space objectsHere's what my game looks like so far (Since I'm actively developing this, it may not work ) I thought that switching states would be the best method of scooting between areas like space and the ship interior when you wanted to walk around, since the control scheme, map and numerous other things would change, but since reloading states means that everything gets reset, it seems like it may not be the best way of going about it unless I could somehow make a global object that contains all the values I want to save. I tried doing this to save my ship sprite as well as the group of asteroids a while back but I met failure and was unsure how to proceed so I scrapped it and figured "maybe I just needed to load the maps all from the same state" but it would seem that doing that would end up putting a TON of stuff in one state and kinda defeats the purpose of having states so I'm not sure what to think. Since I wasn't sure how to go about switching between the ship interior and flying around teh cosmoz I decided to focus on fleshing out my flying gameplay and realized that I want to have a menu that appears when you press X so you can do things like request access to dock if a space station is nearby or switch your main weapon out or something. So basically I want to be able to create a menu dialogue box like something you might find in an RPG battle system. This is probably way too long and drawn out and I'm going to blame it on it being almost 5:00 AM but TL;DR: How can I save my group data, sprite positions etc between state switches and is this feasible for moving between two different "play modes" What's the best way of going about creating a menu dialogue in-game whose options I can navigate between?
×
×
  • Create New...