unxcellent's Forum Posts

  • I like your art. What type of software you use to create the art if you dont mind me asking?

  • Launch trailer from Battle Princess Madelyn, a game we started prototyping in C2 around 4 years ago now!

    Subscribe to Construct videos now

    Coming to Switch, PS4, Xbox One, and PC December 6th 2018, with PS Vita and Wii U later in the new year.

    I though construct only support export to Xbox. How did you endup exporting to Ps4 for example? did you use another engine or code?

  • Thanks for the info. I wish you good luck.

  • Looking good. I liked the music and sound effects. You did then yourself?

  • Looking good.

    what software are you using to create and animate your pixel art?

  • > looks great man, you did the art yourself as well?

    >

    Thanks man, yeah it is a one man team development!

    Nice! I wish you the very best and good luck!

  • looks great man, you did the art yourself as well?

  • Anyone?

  • Hi everyone.

    I'm having some issues saving what has been bought and what's selected on my ingame shop.

    I'm still new and I followed the wikis or tutorial about Local Storage however, im still having a difficulty saving some items properly.

    In this capx example that I created:

    https://drive.google.com/folderview?id=0B9tGN8-NMP_xQzFxUlZpclhXRzg&usp=sharing

    You have a basic shop, where you can buy and select the item/player you want to use.

    And im trying to save what has been bought already and what has been selected already.

    What im trying to accomplish is:

    1. If you buy an item, game saves, and next time you reload the game you dont have to buy it again.

    2. If you select a bought item, game saves, and next time you reload, you will see your selected item by default.

    3. Let say these buttons are players, if you select one, the other one de-selects. So next time you reload the game you will see the last player you selected.

    I'm using instance Boolean variables for the "Bought" and "Selected" items/players.

    I have encounter many bugs on the way im saving stuff and im pretty sure this can be done in a different easier way.

    Could you guys take a look at my capx and see where I went wrong? and what's the best way to do it?

    if you guys could fix my capx would be great

    https://drive.google.com/folderview?id=0B9tGN8-NMP_xQzFxUlZpclhXRzg&usp=sharing

    Note: On the capx

    1. if you press 1 it will reset global variables and clear storage.

    2. if you press 3 it will add 50 coins

  • You haven't set a price on the Item_Buy.price.

    Hi tekniko, if you go to the shop layout and click on the item_buy,

    there's a instance variable name 'price'. Thats where I put the price value.

  • He's right saying the "restart" is the problem. Everytime you restart the layout, you basically start the layout, and you asked to set money = 10 at start of layout.

    You can make what you want by setting the global number Money = 10 and remove the condition "at start of layout set money = 10"

    But restart the whole layout to update your wallet feels a bit inadequate for Construct 2 I believe, it will ask to reload all the assets and things. You better update dynamically without restarting maybe ?

    How do I update dynamically without restarting?

  • this is pretty simple and i can see why you didn't find it....so you have on start of layout to set the coin for start and you have when bought restart the layout will actively re-trigger the on start of layout to set the coin back to ten. So in other word the Event that is causing the problem is the restart layout.

    And you are telling construct two to buy an item reduce total money coin and then restart on layout and then on the beginning of loading the layout (on start of layout) to set coin to ten and then the text back to the ten. If you disable the on-start it will function correctly.

    Hi, you are basically saying to disable system --> ON start of layout --> MoneyDisplay --> Set Text to TotalMoney?

    if you are saying that, I already tried that and doesn't work. Even on debug you can see that it's not deducting the coins.

    Sorry probably I misunderstand what you said, could you give me an example?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello all im trying to create a in-game shop.

    However, I have encounter a weird problem,

    I got this shop example from an old forum post.

    Here's my problem,

    I have a global variable called totalMoney which is basically the total coins the player has collected during playtime.

    When you enter the shop with a totalMoney amount, example, System --> Start of layout --> System --> set TotalMoney to 10 and you try to buy

    a item from the shop the bought and selected functionality works fine however, NO coin is deducted from the 'TotalMoney' global variable.

    Here's an example where it does NOT work.

    https://drive.google.com/file/d/0B9tGN8-NMP_xZzBETjhwbnBzc00/view?usp=sharing

    If you go to the event sheet and look for System-->TotalMoney > item_buy.price and delete "System --> Restart Layout"

    you can see that now it starts deducting from the totalMoney but however the bought/selected functionality does NOT work.

    But, if I go into the layout with totalMoney = 0 and somehow add coins inside the 'in-game' shop everything works fine.

    I made an example of this:

    https://drive.google.com/file/d/0B9tGN8-NMP_xeVZfeTFtNU9Udmc/view?usp=sharing

    Sorry if this is confusing,

    English is not my first language and I tried my best to describe it properly.

    If you can help me fix this will be great .

    If there's an easier way to create a in-game shop please let me know or show me a capx file.

  • Well by "reduce" I meant "increase" as the number is negative.

    Use something like -30 instead of -54.

    Hi Coin, thanks for the help.

    I got it. forgot to put them as solid.

  • Well by "reduce" I meant "increase" as the number is negative.

    Use something like -30 instead of -54.

    I used -30,-15,-0, but every time the hit the floor they merge instead of stacking in top of each other.