Page 1 of 1

stores and stuff

PostPosted: Fri Sep 14, 2007 1:55 am
by jagheera nex
HEY GUYS! im making a stickman type game and you can buy diffrent colors for our guy and im having a little truble, someon plz help. ok i have the menue where you can select your color but if you don't have enuf money it just gos negitive(the money amount), how do i make it so if you don't have enuf money it says somthin like "yu don't have enuf cash" lol :P :P

Re: stores and stuff

PostPosted: Fri Sep 14, 2007 8:48 pm
by Troodon
In the buying event:

if (cash > 0)
{
buys the paint
}

if (cash =< 0)
{
create "you don't have enought cash" actor
}

:)

Re: stores and stuff

PostPosted: Fri Sep 14, 2007 11:08 pm
by Rule-Buster
Yeah, i would like to know how to make my charicter interact with a store and have options to buy stuff.
I would also like to know how to make where you can unlock thingies in the store by colecting a certan amount of items.

Re: stores and stuff

PostPosted: Sat Sep 15, 2007 4:02 pm
by Troodon
Well, making the store system to a game can be made with hundreds of different ways. It would be better that you plan how you will make it and then ask questions just to the parts you need help with.
Have you played around with variables?

Re: stores and stuff

PostPosted: Sat Sep 15, 2007 4:07 pm
by Rule-Buster
no, i'm so new, i don't even know how to get my charicter to stop jumping for infinite. :D

Re: stores and stuff

PostPosted: Sat Sep 15, 2007 4:28 pm
by Troodon
Ah ok. I think there should be one variable tutorial somewhere.
Variable is very easy and very very handy thing in all code langauges. It basically stores information.
Most of the variables are integers (stores numbers) and in GEysir (my name for GE code) you can use variables like this:

myvariable = 40; //sets the variable value to 40
anothervariable = myvariable; //sets a variable value to the variable value of another variable
myvariable = 1+1;
myvariable = anothervariable + 1337 + 365;
myvariable += 2; //variable value changes to value + 2 (if it's 1 it becomes 3)
myvariable = xvelocity;
or inside any script that where you can insert numbers.
There is also string variables (store text) but they are level more complicated so you better practise playing with integer variables first.

:D

Re: stores and stuff

PostPosted: Sat Sep 15, 2007 5:11 pm
by Kalladdolf
I usually use animations to store information :D
... very handy!

Re: stores and stuff

PostPosted: Sat Sep 15, 2007 8:17 pm
by jagheera nex
thanks guys! :D