Page 1 of 1

Collision Event for Transparent Actor

PostPosted: Sat Jan 05, 2008 8:49 am
by Bee-Ant
Why if you set an actor's transparency to 1...it can't receive collision event???moreover physical response??? :roll: :roll: :roll:

Re: Collision Event for Transparent Actor

PostPosted: Sat Jan 05, 2008 8:56 am
by Troodon
Because it needs "visual" contact. Remember, transparent png's also doesn't collide.

To make invisible actor which can collide: create actor -> visibility state -> don't draw but allow events

:)

Re: Collision Event for Transparent Actor

PostPosted: Sat Jan 05, 2008 9:05 am
by Bee-Ant
I think that way just for "invisible-forever" actor...how about "invisible-forwhile" actor???

Re: Collision Event for Transparent Actor

PostPosted: Sat Jan 05, 2008 9:08 am
by Troodon
well, you can use that in any event. For example:
collision -> any side of lizard -> visibility state -> don't draw but allow events
etc, etc

Because GE draws the actor again and again in automatic draw actor event. Well, not 100% automatic because there must be the "create actor in the beginnin" set. :)

Re: Collision Event for Transparent Actor

PostPosted: Sat Jan 05, 2008 9:14 am
by Bee-Ant
Well, I wouldnt know the result before try it...thanks anyway...

Re: Collision Event for Transparent Actor

PostPosted: Sun Feb 27, 2011 5:42 pm
by yttermayn
I have found that if you want an invisible actor to collide, make it's transparency .99999 instead of 1.0. You can't see .99999, but it will collide.

Re: Collision Event for Transparent Actor

PostPosted: Mon Mar 07, 2011 5:54 pm
by Hblade
There are many ways to do this:
1, would be to stamp a wireframe on him then use that as the collision, 2 would be to "code" a collision box and when the player's X/Y reaches that box it sends a variable deactivating the players directional velocity.

Re: Collision Event for Transparent Actor

PostPosted: Mon Mar 07, 2011 6:23 pm
by lcl
Lol guys, this is 3 years old topic, I think Bee-Ant has already solved the problem.. xD

Re: Collision Event for Transparent Actor

PostPosted: Wed Mar 09, 2011 12:15 am
by Hblade
Lol yeah

Re: Collision Event for Transparent Actor

PostPosted: Mon Mar 14, 2011 7:54 am
by 157pl
r u shure he may still need help he never said he got it to work :lol:

Re: Collision Event for Transparent Actor

PostPosted: Fri Mar 18, 2011 2:23 pm
by savvy
try setting the objects transparency to 0.9999999, that way it IS visible but hardly... it is so un-visible that you cant see it unless it is against a contrasting background... then its like a shadow... barely noticeable.

Re: Collision Event for Transparent Actor

PostPosted: Fri Mar 18, 2011 8:18 pm
by Game A Gogo
A 100% transparent actor is still visible.
Clone an invisible actor over it self many times, and change the BG color to white, you'll see what I mean. Yet, no events regarding interaction happens

Re: Collision Event for Transparent Actor

PostPosted: Sat Mar 19, 2011 4:39 pm
by Bee-Ant
lcl wrote:Lol guys, this is 3 years old topic, I think Bee-Ant has already solved the problem.. xD

Indeed.
For everyone insist on help, thanks. But the problem already solved since Troodon posted his last reply, 3 years ago :D

Game A Gogo wrote:A 100% transparent actor is still visible.
Clone an invisible actor over it self many times, and change the BG color to white, you'll see what I mean. Yet, no events regarding interaction happens

Indeed.
I got this when using ghost effect with canvas, in the bright colored background...
The square shape still visible, whereas I used erase(0,0,0,1); on the canvas that supposed to make it completely transparent...