stores and stuff

Game Editor comments and discussion.

stores and stuff

Postby jagheera nex » Fri Sep 14, 2007 1:55 am

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
User avatar
jagheera nex
 
Posts: 46
Joined: Sat Jul 28, 2007 4:13 pm
Location: dik
Score: 1 Give a positive score

Re: stores and stuff

Postby Troodon » Fri Sep 14, 2007 8:48 pm

In the buying event:

if (cash > 0)
{
buys the paint
}

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

:)
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: stores and stuff

Postby Rule-Buster » Fri Sep 14, 2007 11:08 pm

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.
I'm right behind you...
http://freewebs.com/jason-buster/
User avatar
Rule-Buster
 
Posts: 219
Joined: Sat Sep 08, 2007 2:21 pm
Location: In the clouds. In the trees. In the birds. Or in my own little world.
Score: 4 Give a positive score

Re: stores and stuff

Postby Troodon » Sat Sep 15, 2007 4:02 pm

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?
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: stores and stuff

Postby Rule-Buster » Sat Sep 15, 2007 4:07 pm

no, i'm so new, i don't even know how to get my charicter to stop jumping for infinite. :D
I'm right behind you...
http://freewebs.com/jason-buster/
User avatar
Rule-Buster
 
Posts: 219
Joined: Sat Sep 08, 2007 2:21 pm
Location: In the clouds. In the trees. In the birds. Or in my own little world.
Score: 4 Give a positive score

Re: stores and stuff

Postby Troodon » Sat Sep 15, 2007 4:28 pm

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
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: stores and stuff

Postby Kalladdolf » Sat Sep 15, 2007 5:11 pm

I usually use animations to store information :D
... very handy!
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: stores and stuff

Postby jagheera nex » Sat Sep 15, 2007 8:17 pm

thanks guys! :D
User avatar
jagheera nex
 
Posts: 46
Joined: Sat Jul 28, 2007 4:13 pm
Location: dik
Score: 1 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron