PDA

View Full Version : How to make a shop!



R-e-n-n-a-t
01-24-2011, 06:00 PM
This is really pretty straightforward, if you want people to be able to buy different items using points in-level.

First, make a "buy menu" with several sticker switch panels on it. Give each panel a microchip as well as a sticker switch. Put a score sensor on the microchip, and connect it as one input to a two option "and gate". The other input will be the sticker switch.

Make the outputs of the "and gate" fire an emitter to release what you just bought, and the other a "score giver".

Set the "score sensor" to however many points you want the item to cost, and the "score giver" to the same amount, but negative, so it will take away that many points.

Now you're done!

Krondelo
01-24-2011, 06:20 PM
Now make one with a dynamic menu and a currency and you Win! haha..

TjoxYorro
01-24-2011, 06:28 PM
This doesnt work, because if you have 0 points, and select an item, it will still give you the bought item. Your score wont go negative, but stay at 0

CYMBOL
01-24-2011, 07:02 PM
Intesting idea though.

Dialgax07
01-24-2011, 07:22 PM
This doesnt work, because if you have 0 points, and select an item, it will still give you the bought item. Your score wont go negative, but stay at 0

Just add in a score sensor and an AND gate, and if you don't have enough points, the sensor won't trigger, hence not giving you a free item.

Weretigr
01-24-2011, 07:27 PM
Or create a digital display and put the currency in there- then you'll get extra brownie points for technicality :)

TheZimInvader
01-24-2011, 07:30 PM
Or create a digital display and put the currency in there- then you'll get extra brownie points for technicality :)

But that would take up more thermometer. ;)
I think point bubbles are a pretty clever and efficient way of having a currency, especially now that there are score givers and score sensors. I'll be using it in an explorable RPG-type town I'll be making soon.

ChazFox
01-24-2011, 08:32 PM
Yeah, I like the idea of an RPG setting where the currency is score bubbles. :D Awesome tutorial, I may use this sometime!

artise
01-24-2011, 09:17 PM
i have an LBP1 level that uses point bubbles as money.

R-e-n-n-a-t
01-25-2011, 01:39 AM
I already pointed out that you need a score sensor AND a sticker switch. Somebody wasn't reading very carefully...

TjoxYorro
01-25-2011, 07:31 AM
I already pointed out that you need a score sensor AND a sticker switch. Somebody wasn't reading very carefully...

No i wasn't, sorry :3

Hedgeycommish
02-21-2011, 03:22 AM
Sounds good, i would test it for bugs, though:p

SSTAGG1
02-21-2011, 03:47 AM
A completely logic based one can be done by using the DCS.
Use a selector and put up/down or left/right to 'toggle' back and forth between options. Have each selector output activate some lights or holo to display which one is chosen. Use X (or whatever) instead of the sticker switch.

Put output through an AND gate with the score sensor. AND output goes to whatever it is your activating through the purchase, and a score changer.

There you go, a completely logic based store.

If you want to keep the feel of your level, and not have your sackboy sitting in the DCS, just put use a transition (fade to black, teleport, etc) to go 'into' store. Have a sackbot inside the same as the player, and keep DCS hidden. Then when you 'exit', send player back to the store entrance using the same trick.

Bloblblobl
02-21-2011, 05:41 AM
This doesnt work, because if you have 0 points, and select an item, it will still give you the bought item. Your score wont go negative, but stay at 0

I haven't tested it out, but couldn't you just have a score sensor that checks that the score is not 0?