Out of Vision: okay. But Back in vision?

Non-platform specific questions.

Out of Vision: okay. But Back in vision?

Postby sonicfire » Tue Nov 14, 2006 10:49 am

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?
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score

Postby Novice » Tue Nov 14, 2006 11:47 am

Try a collision with the view actor or some filled region, and use a change visibility event.
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score

Postby sonicfire » Tue Nov 14, 2006 12:53 pm

good idea, will give it a go! :) thanks!
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score

Postby sonicfire » Tue Nov 14, 2006 2:36 pm

hmm...so far i cant get it to work :x :?
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score

Postby sonicfire » Tue Nov 14, 2006 2:41 pm

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?
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score

Postby makslane » Tue Nov 14, 2006 3:06 pm

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).
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby makslane » Tue Nov 14, 2006 3:08 pm

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.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby sonicfire » Tue Nov 14, 2006 3:11 pm

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 :(
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score

Postby sonicfire » Tue Nov 14, 2006 3:46 pm

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 :)
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score

Postby makslane » Tue Nov 14, 2006 4:37 pm

sonicfire wrote:Collision between the Filled Region and the View?


No. Between the Filled Region and the actor that you want to track.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby sonicfire » Tue Nov 14, 2006 4:51 pm

Thanks, makslane! But for now i will use the distance method! :)
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest