Help with saving points and in-game store
Hello Everyone i was just wondering, how you would go about making a , "Points To Upgrade" method
For example , Say i jump 1000 meters, and it gives me 100 coins, how could i make it save these coins , and also keep adding to them
so instead of just starting back at zero when i take another jump , i want them to stay at what they was last jump , and then my next jump, i want the coins earned in this jump added to them
so i can spend this on upgrades
if i didn't explain it clear enough please just say
For example , Say i jump 1000 meters, and it gives me 100 coins, how could i make it save these coins , and also keep adding to them
so instead of just starting back at zero when i take another jump , i want them to stay at what they was last jump , and then my next jump, i want the coins earned in this jump added to them
so i can spend this on upgrades
if i didn't explain it clear enough please just say
Comments
And if you haven't already, or if you didn't know, there are tons of videos on how to use GameSalad. Here are a few links to check out, if you haven't already.
http://www.youtube.com/user/GameSaladCookbook/videos?flow=grid&view=0
http://www.gshelper.com
http://gleesongroupmedia.com/gsguide/gsguide.html
@SlickZero i check that tutorial , and it was not what i had in mind,
what i was thinking is this, i will show you my rules
this is how my score system works
http://gyazo.com/4182335273fa3d3deddbb67f35d89d46
That Calculates how far i jumped
Next to this score i have got a coins score , it divided my distance by 12 , so i get what ever score distance, divided by 12
http://gyazo.com/9f615a11a694386c0db50392dc61920b
for the custom font i have got this setup
http://gyazo.com/b4929b27c22812c3def400b1e8b9cd0d
how would i save the coins , so i can keep saving them up , to buy stuff ?
Again, may be way off but hopefully this helps.
Cheers
I'm not just saying it to be an arse, honest, good luck!
It did not work because it had a symbol in which you were told to delete;
Simply take the below and delete the $ and the space after the opening <
< $img src = "http://gyazo.com/4182335273fa3d3deddbb67f35d89d46.png"/img>
That will give you this result;
Just use the above format but put the < at the start of it all
This is the end result.
If you still cannot figure it out, press quote to this comment and you will see the format i'm using
im trying to make a method were i , jump off a ram on my bike, jump say 2300 meters , then divide that by 12 and add it to my coins, which can be saved up and spent on upgrades
here are my rules what am i doing wrong, cause it dont add the coins up it just keeps changing them , to how many i earned that jump
in the first screenshot it shows , my method to turn my score , into coins by dividing it by 12
the second image shows , how my custom font is setup , could anyone help me with this please
http://forums.gamesalad.com/discussion/54256/help-with-saving-points-method#latest
[merged threads and edited title]
If you can give more info on the details of your attributes; money, coins and score and how they get their values that may help. Is your constrain game coins to game score attribute supposed to be a change attribute? I cannot tell from what i see. Not sure what else i can do to help.
but i want to to make it so , my distance i traveled , gets divided by 12 , then added to my coins
so i can later upgrade my bike. To get my score i am using this formula
"Floor(game.EndX-game.StartX)
Constrain attribute game.score to "Floor(game.EndX-game.StartX)
This gives me the the distance were i landed , subtracting were i started
so normally about minimum 1000 meters max 4000 meters
i want to divide that by 12 , and add it to my coins each round
at the moment i jump and it divides it by 12 , gives me about 80 coins but then ,when i click restart to jump again and jump off the ramp , it adds about 1000 points, so it doesn't divide the score
to get the coins i use this formula
constrain "game.Money to game.Money+game.Score"
change attribute "game.Money to game.Money/12
here is my game see if you understand what i mean
I think it's reasonable to bump a thread if six hours or more have gone by and you've haven't received a response. I also think it's best to post additional information (e.g. a screenshot, other algorithm-related information, a video, a sketch, etc.) instead of just writing "bump" or "anyone???" or things along those lines.