frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

IN GAME SHOP

I have made my character able to collect coins, and for one i need help with saving the coin count as it goes to each level, but I also want to make a in game shop where you can 'buy' different characters. Is it even possible?

Comments

  • Yes it is. The Graveyard has a great example, but beware, the code is scary! Just make it to where when 6ou click on a character in the shop, it will test for how much money you have. If you have that much money or more, then it will subtract the proce and emit the character. PS use a save block for multiple level shops.
  • edited February 11
    Yeah, but it can be very complex depending on what you want to do or how you want your shop.
    There aren't too many games with a shop system, but creating one doesn't have to be very complicated.
    I've created a shop in my game DRIVE that I am very proud of... and probably isn't recomended to try yourself. I could probably help if you want to try to get a basic shop system in your game.

    Some that isn't too complex are:
    - StarBlast 2 - uses a save for the selected character
    http://flowlab.io/game/play/530626
    - Buckets - uses key inputs to select a character
    http://flowlab.io/game/play/225037

    Some that are very complex and uses several saves are:
    - The Graveyard
    http://flowlab.io/game/play/721980
    - DRIVE (my game)
    http://www.flowlab.io/game/play/938307
  • can you show me
  • edited February 11
    For making a shop; the basic idea I could think of is somewhat simular to StarBlast 2's shop.

    - You need at least 3 (or more) saves, one for your money, one for chosen character and one for after puchase of that character.
    - You need to put all the characters as each thier own animation on your playable character, the save will chose which animation/character your playing as.
    - Create all your characters seperately to be chosen in the shop.
    - characters that are purchasable needs a switch if is and is't puchased, use an expression with A as the save of your money and B to the price you want. If budget is below 0 then you can't get that character. After puchase, you give a save to your selection for the player to use later outside the shop.

    I have created the basic version of a shop that I can do,
    you need to open editor and go to the shop level:
    http://flowlab.io/game/view/1060081
Sign In or Register to comment.

flowlab.io

| make games in your browser
@ 2017 Flowlab.io, All rights reserved.

Contact us

Get In Touch