thank you.
thats exactly what I was looking for.
quick question:
switch(i)
{
case 1: fun;
break;
case 100: excitement;
break;
}
if i = 50 then you get excitement?
Search found 16 matches
- Sat Feb 18, 2012 11:42 am
- Forum: General discussion
- Topic: 2d "zone" detection
- Replies: 5
- Views: 7145
- Sat Feb 18, 2012 1:25 am
- Forum: General discussion
- Topic: 2d "zone" detection
- Replies: 5
- Views: 7145
- Thu Feb 16, 2012 11:41 pm
- Forum: General discussion
- Topic: 2d "zone" detection
- Replies: 5
- Views: 7145
2d "zone" detection
hi all, for my little game demo I'm making I need to detect what kind of terrain the model is over. right now Im just making big invisible models and using the native collision detection. i was wondering if theres an easy way for me to make a B&W zone map and compare the models position to in or...
- Fri Jul 08, 2011 10:22 am
- Forum: General discussion
- Topic: how does clamp work?
- Replies: 1
- Views: 3911
how does clamp work?
do you put it in before you assign a value or after?
- Fri Jul 01, 2011 5:50 am
- Forum: General discussion
- Topic: can you make a variable "global" to just one model
- Replies: 1
- Views: 4029
can you make a variable "global" to just one model
is it possible to do something like have a single integer variable, e.g., strength, but be able to define it separately for each model?
kind of like making it become a .propertyName of the model, so I could refer to it via currentModel.
kind of like making it become a .propertyName of the model, so I could refer to it via currentModel.
- Sun Jun 26, 2011 3:39 am
- Forum: General discussion
- Topic: cant call timer multiple times
- Replies: 2
- Views: 4644
- Fri Jun 24, 2011 4:59 pm
- Forum: General discussion
- Topic: cant call timer multiple times
- Replies: 2
- Views: 4644
cant call timer multiple times
i hope this isnt too confusing... what im trying to do: when a player engages an enemy they "dock" and pivot around a common point, but when the player pushes forwards(w) its rolls a movement attack, like pressing your enemy. if its successful it should push both of you along for a couple ...
- Fri Jun 24, 2011 8:44 am
- Forum: General discussion
- Topic: nesting issues
- Replies: 5
- Views: 7814
- Sat Jun 11, 2011 4:11 pm
- Forum: General discussion
- Topic: increasing rate of change caused by mousewheel
- Replies: 1
- Views: 3800
increasing rate of change caused by mousewheel
ok so the player has a pool of points that he can divide between two groups, and he can do it during run time. the two groups display (using a repeat and render transform) on either side of the characters head and ive got it so that the mousewheel shuffles the points back and forth. the problem is t...
- Thu Jun 09, 2011 6:24 am
- Forum: General discussion
- Topic: nesting issues
- Replies: 5
- Views: 7814
- Thu Jun 09, 2011 3:36 am
- Forum: General discussion
- Topic: nesting issues
- Replies: 5
- Views: 7814
nesting issues
Ive tried this a couple ways now and it acts strangely either way int roll(int sides) { return (rnd()*sides)+1; } void attackType() { switch(roll(2)) { case 1:(swingType = 0); break; case 2:(swingType = 1); break; } } void location() { switch(swingType) { case 0: switch(roll(6)) { case 1: break; cas...
- Mon Jun 06, 2011 12:19 am
- Forum: General discussion
- Topic: ZLibrary confusion
- Replies: 2
- Views: 4489
- Sun Jun 05, 2011 4:43 pm
- Forum: General discussion
- Topic: ZLibrary confusion
- Replies: 2
- Views: 4489
ZLibrary confusion
I cant seem to figure out how to do this, I want to have a function that rolls a die, and I have a Switch Conditional call that function. heres what I tried (theres probably a couple of errors in there) /* 1.generate target location 2.roll attack dice 3.roll defense dice 4.result hit: play swing,pla...
- Sun Jun 05, 2011 1:06 am
- Forum: General discussion
- Topic: any way to see which componant is referencing another?
- Replies: 1
- Views: 3800
any way to see which componant is referencing another?
I was doing some spring cleaning in the project tree, and occasionally ran into component that I had thought was no longer in use, but I was unable to delete. This would result in me having to look at every expression until I found the offending code. Is there anyway to select a component and get a ...
- Sun Jun 05, 2011 12:57 am
- Forum: General discussion
- Topic: models position not global?
- Replies: 2
- Views: 4746