How to make your own supply store. [BASIC]
|
Author: | Alfredo Zone
|
Submitted: | 30th September, 2011
|
|
Views: | 2144
| Rated: |
|
|
Hello im Alfredo zone or videogameget for short and im here to show you how to code a small supply shop at your game
READ THIS FIRST!!
ACTIVE = PLAYER
COMPUTER = ACTIVE2 Or the trigger that triggers the store.
----------------------------------------------------------------------------------
Step 1
In order to make a supply store or refill station do the following.
Make an ACTIVE as the player, After you programmed the player create a ACTIVE2 or COMPUTER. After that you set the following condition.
Set Collision between ACTIVE to ACTIVE2, reappear buttons or what ever you think is good as an button press and images if you like.
ALSO SET THE ACTIVE TO ACCELERATION 0 AND STOP SO THE PLAYER DOESN'T FLY AROUND WHILE THE SCREEN SHOP IS ON!!!
Step 2
Next, If you use bullets or money number use the following codding.
IF COUNTER1 = 0 then ALL BUTTONS ARE DISABLE Except EXIT or last button.
IF COUNTER1 = YOUR VALUE FOR ITEM 1, ENABLE FIRST BUTTON THAT ADDS VALUE TO COUNTER 2 or bullets ammo and disable the rest but not the exit button. And set counter 1 that is the money to the value that requires its money for example COUNTER = 100 and the ammo costs 100 then subtract the exact type.
IF YOU DON"T WANT NEGATIVE NUMBERS DO THE FOLLOWING.
SELECT COUNTER1 go to its proprieties and change value start and others.
And that's the basics and i know aint good this tutorial but it explains alot of the details.
Thank you for reading this segment i hope it helped you!
|
|
|