Page 1 of 1

Enter Vision--Lex.C

PostPosted: Fri Sep 05, 2008 4:29 pm
by Lexcondran
My idea for a cool feature would be enter vision. Almost Like Out of vision but it works when the object
will come into vision. It would be useful for somethings that need to act on que. It would have the ability to set text, draw actor, and other things.

Re: Enter Vision--Lex.C

PostPosted: Fri Sep 05, 2008 4:44 pm
by Kalladdolf
Good idea generally, but you could also solve that problem using actors just outside vision (following view of course) that detect entering actors on collision.

Re: Enter Vision--Lex.C

PostPosted: Fri Sep 05, 2008 7:29 pm
by DarkParadox
i've suggested this about 2 months ago...

Re: Enter Vision--Lex.C

PostPosted: Sat Sep 06, 2008 1:43 am
by feral
there are about a million ways to do this 8)

this is just one, and it does not use collisions/regions or anything fancy.

this particular version will ONLY trigger the "in vision" event for each actor once, ie: the FIRST time that particular actor comes on screen.

ie: once only for every actor as it first appears. actors/objects already on screen, will not trigger until they leave vision and then return

it can be easily changed to retrigger everytime any actors come and go off screen

in this example every "block" will explode as it comes on screen - try cloning more blocks for lotsa fun.. LOL
invision.zip
data and ged
(142.25 KiB) Downloaded 194 times


should be well commented... but, if does not make sense let me know

PS: BTW yeah I agree . it probably would still be a good idea to include the "into vision", as an event -
it would be easier.. :D

Re: Enter Vision--Lex.C

PostPosted: Sat Sep 06, 2008 2:22 am
by BlarghNRawr
you can just make a filled region the same size as the view and add it view as parent, then you just use collision and collision finish...
thats what i do :D

Re: Enter Vision--Lex.C

PostPosted: Sat Sep 06, 2008 8:44 am
by Lexcondran
Yes but this would simplify all that and save time for everyone or help those that do not know how to
do that already. That is the point to help people become better or just to pass some time till 12/31/1999 lol

Re: Enter Vision--Lex.C

PostPosted: Sat Sep 06, 2008 9:36 am
by Kalladdolf
there are lots of events, vars, functions and actions which you could actually make yourself (eg. AnimationFinish, xvelocity, yvelocity, Out of vision etc) and loads loads more.
they just save time.
It would be easier for newbies to have more events like that (SoundFinish, Enter Vision, scale_x, scale_y, just to name a few that have been requested already).
the other thing is: you learn scripting very well by NOT using these events and actions.