lionz's Forum Posts

  • You need to use a global variable for lives. When you restart the layout, it creates a new instance of the objects and instance variables will be set to default, whereas global variables will remain unchanged.

  • It's because when lives is greater than 0 you restart the layout but on restarting the layout it sets the player position to mouse.x, mouse.y which is already overlapping the gameender. edit:Yeah somebody already posted.

  • In terms of player location on the machine, so it doesn't start from the original game load point, I store player x,y in a global variable when you leave the layout and set player position to these variables when returning to the layout.

    In terms of global variables, they should all be saved if you have 'included' them on each event sheet so that they are used. Even when switching between layouts they are global so should remain the same. Also make sure you don't have any random reset global variable actions in there.

  • You've posted a capx without the issue in it which is a bit strange. I'm not seeing a player or any animations.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What is this mail plugin? Can you delete that and re-upload the capx, thanks

  • PixelPower

    thanks for the idea, I think it might end up feeling like a theme park still though, I guess I would be replacing rides with alien rides and shops with alien shops so it would pretty much be the same thing unless I come up with some really unique gameplay ideas.

  • I enjoyed that let's play, he seemed to like the jetpack

  • So kind of like the health bar used in N64 Goldeneye? How is this different from the logic of a rectangular health bar? Wouldn't it be the same logic where based on the amount of health the graphic changes so you just make all of the necessary graphics and trigger them at certain amounts of health? Or am I missing something? Maybe...but I would just make the different stages of the health bar ring as animation frames and set each frame based on the relevant health or status of the player, which is I assume how your rectangular one was made?

  • I'm sure someone can provide a more detailed response but the quick fix might be to use the Browser object to Reload the page at some point after you've modified the JSON data.

  • You do not have permission to view this post

  • I'm currently working on a Rollercoaster Tycoon type game but I'm trying to come up with a theme that would be good besides rollercoasters (obviously done before). I was going to possibly use a dinosaur park idea too but I think that also may have been done to death, not sure. Logic is coming along and it will fit any theme, just wanted to put this out there in case anyone had any ideas for unique themes or what they might like to see in a tycoon game that hasn't been done before, cheers!

  • That is a LOT of questions. "Some people told me do it with arrays or local storage but I dont know how?" That's your issue, I would look at array tutorials, there's a nice basic one to learn what arrays are and how they are used. Once that is complete then you'll know how to add data to an array and store it. I believe if someone just sends you a capx you won't know how any of it works will you? So it will be difficult to then expand on it to make a game. This also sounds like a big effort for a first game as it will require lots of database information to be stored. In general though, yes if it's some kind of management game you are going for then you can store a player and each related data in an array and grab it later by finding the position in the array. I guess you would display that information in text boxes. You would probably assign them 'team' data so they can be listed in a team and then if you want to swap them to another team you update this data. I don't think there's any way to provide a 'small capx' for this, it's more progressive, you will start with data and build upon it until you have player selection in a list and then transfers available, because what you are describing above is pretty much an entire game. In terms of presenting the teams, if you mean in a list then that will be a case of searching the array for all data that contains that team name and listing the players. If you mean actually playing some soccer graphically you would have to make that, randomise some movements of dots on screen or something similar.

    TLTR: look at some array tutorials and get comfortable with using arrays as your game will rely on it.

  • No problem, here is an example capx using Dictionaries : https://www.scirra.com/tutorials/4836/n ... dictionary

    You could use the Dictionary values to store data or modify it to use an Array instead.

  • Hello,

    It is as simple as using the 'save' and 'load' slot commands. All the array values will be saved at their current state at the time of 'save'.

    Check out this link for how to easily save and load a game : https://www.scirra.com/tutorials/526/ho ... -savegames