Page 1 of 1

Out of Vision: okay. But Back in vision?

PostPosted: Tue Nov 14, 2006 10:49 am
by sonicfire
I just tried using a "out of vision" event for a little water-area (actor). I´ve choosen "don´t draw, but allow events". Seems to work fine, however - when i came back to this area - the actor won´t be drawn again! (?)

Is there something that i´ve forgotten? How can you then make it visible again?

PostPosted: Tue Nov 14, 2006 11:47 am
by Novice
Try a collision with the view actor or some filled region, and use a change visibility event.

PostPosted: Tue Nov 14, 2006 12:53 pm
by sonicfire
good idea, will give it a go! :) thanks!

PostPosted: Tue Nov 14, 2006 2:36 pm
by sonicfire
hmm...so far i cant get it to work :x :?

PostPosted: Tue Nov 14, 2006 2:41 pm
by sonicfire
i tried placing a wireframe region around the view (it´s slightly bigger than the view) and made it child of player actor (as i did with normal view). then i´ve choosen collision with object water (i´m testing it with "dynamic" water) -> visibility state : water : enable :?

but when its out of the view its still not drawn...

@makslane: May i ask a question? :) What´s the sense in the out-of-vision event if its only one-way? I mean: disabling works nice to save CPU ressources, but if you came back to that place its still disabled? Then how should this feature be used?

PostPosted: Tue Nov 14, 2006 3:06 pm
by makslane
Instead use the 'Out of Vision' event, create the filled region actor, make the view your parent, and use the 'Collision' and 'Collision Finish' events to track in and out of this regions (disable the repeat option in the collision event).

PostPosted: Tue Nov 14, 2006 3:08 pm
by makslane
sonicfire wrote:What´s the sense in the out-of-vision event if its only one-way?


Just this. It's a 'Out of Vision' event, not a 'Back in the vision' event!
The event was created just to save cpu and memory for actors like bullets.

PostPosted: Tue Nov 14, 2006 3:11 pm
by sonicfire
Thank you very much for clearing it up!

EDIT: Collision between the Filled Region and the View?
EDIT2: Okay, mh you cant choose View as actor for collisions ... i´m still stuck :(

PostPosted: Tue Nov 14, 2006 3:46 pm
by sonicfire
edit: still doesnt work :lol: :?
damn, i dont know why ... why isn´t there a simpler method for this :(

EDIT: Found one. I´m using simply distance checks now for/within each actor every 5 frames. Works like a charme :)

PostPosted: Tue Nov 14, 2006 4:37 pm
by makslane
sonicfire wrote:Collision between the Filled Region and the View?


No. Between the Filled Region and the actor that you want to track.

PostPosted: Tue Nov 14, 2006 4:51 pm
by sonicfire
Thanks, makslane! But for now i will use the distance method! :)