Search found 16 matches

by Paradan
Sat Feb 18, 2012 11:42 am
Forum: General discussion
Topic: 2d "zone" detection
Replies: 5
Views: 7145

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?
by Paradan
Sat Feb 18, 2012 1:25 am
Forum: General discussion
Topic: 2d "zone" detection
Replies: 5
Views: 7145

im using one giant sprite thats in the OnRender of the ground model.

ive got an ortho cam active and the ground model is 1 unit below everything else. its the only map/level in the demo and player movement will be constrained to its boundaries.
by Paradan
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...
by Paradan
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?
by Paradan
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.
by Paradan
Sun Jun 26, 2011 3:39 am
Forum: General discussion
Topic: cant call timer multiple times
Replies: 2
Views: 4644

thank you, i got it working :D

i put the timer (with timer.repeatcount set to -1) under a condition in update, had the timer decrement the reps variable and toggle the conditions variable off when reps hit zero.

this mechanic now works as envisioned, thanks again.
by Paradan
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 ...
by Paradan
Fri Jun 24, 2011 8:44 am
Forum: General discussion
Topic: nesting issues
Replies: 5
Views: 7814

Ill check out the beta, thnks a bunch
by Paradan
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...
by Paradan
Thu Jun 09, 2011 6:24 am
Forum: General discussion
Topic: nesting issues
Replies: 5
Views: 7814

woo hoo I contributed.

thanks again.
by Paradan
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...
by Paradan
Mon Jun 06, 2011 12:19 am
Forum: General discussion
Topic: ZLibrary confusion
Replies: 2
Views: 4489

thank you, and good idea with sides thing.

hopefully ill have a rough prototype up and running in about 2 weeks.
by Paradan
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...
by Paradan
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 ...
by Paradan
Sun Jun 05, 2011 12:57 am
Forum: General discussion
Topic: models position not global?
Replies: 2
Views: 4746

thnks for the reply, sorry it took so long to get back havent had time t work on this project til a few days ago.

switching from clone to reference solved my problem, I had switched everything to clones while trying to solve some transparency/blending issues.