Sure, you can easily just use a button that checks if you have enough cash and if you do gives you what ever you are buying and takes away the amount of money needed. your_button.onRelease=function(){ //"your_button" is the buttons instance name if(your_cash>=10){//check if you have 10 or more cash //"your_cash" is your variable for money in the game strength+=1//train you to be stronger or if you are buying an item //or something you can put whatever code to activate the item there instead cash-=10 //you bought something, you give them the cash for it } //close our brackets
Well it's hard to tell what you did wrong. It could be that they have the same/wrong instance name or you forgot some code or any number of other things.
this didnt work :[ uhm i did it but it went wrong :\ i wonder what i did wrong...
--
*me skipping down hallway* "TARACOTA" *trips and falls over "QUAAAAAAAAK" *boom* my sister crushed my heart by taking my love (true story) TT_TT my sister stole my crush me: my sister:meets my crush then... and me
Daily Literature Deviations is a group that is dedicated to bringing literature to the forefront of the deviantArt community. We attempt to accomplish this by daily featuring Literature artists from around the community that deserve the recognition, but are not getting it.
Each day we will feature 10 deviations from the Literature categories in a News Article. In order to support the artists that we feature, we ask that you the news article as well as check out the individual pieces. We understand that each day you may not be able to check out each and every one of the pieces, everyone has their own things going on. We just ask that you make an attempt to help support the growing Literature community.
The Cutting Edge is a weekly article that features brand new selected high quality art products that caught our eyes. Check out the cutting edge prints some of your fellow artists have submitted in the past week!
When it comes to community spirit, `Rushy is a shining example. From participating in devmeets, to providing positive encouragement to other artists, `Rushy can always be found demonstrating what it really takes to be a true deviant. It's without any hesitation that we are delighted to award the Deviousness Award for July 2009 to `RushyRead More
Devious Comments
Comments
--
KAME HAME HA!~
Sorry about that, I guess I forgot about a back button.
--
~Matt
--
KAME HAME HA!~
your_button.onRelease=function(){
//"your_button" is the buttons instance name
if(your_cash>=10){//check if you have 10 or more cash
//"your_cash" is your variable for money in the game
strength+=1//train you to be stronger or if you are buying an item
//or something you can put whatever code to activate the item there instead
cash-=10
//you bought something, you give them the cash for it
}
//close our brackets
--
~Matt
--
~Matt
--
There's a party in my tummy!
--
~Matt
uhm
i did it but it went wrong :\
i wonder what i did wrong...
--
*me skipping down hallway* "TARACOTA" *trips and falls over "QUAAAAAAAAK" *boom*
my sister crushed my heart by taking my love (true story)
TT_TT my sister stole my crush
me:
my sister:meets my crush
and me
Previous Page1234Next Page