Collision Event for Transparent Actor

You must understand the Game Editor concepts, before post here.

Collision Event for Transparent Actor

Postby Bee-Ant » Sat Jan 05, 2008 8:49 am

Why if you set an actor's transparency to 1...it can't receive collision event???moreover physical response??? :roll: :roll: :roll:
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Collision Event for Transparent Actor

Postby Troodon » Sat Jan 05, 2008 8:56 am

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

:)
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: Collision Event for Transparent Actor

Postby Bee-Ant » Sat Jan 05, 2008 9:05 am

I think that way just for "invisible-forever" actor...how about "invisible-forwhile" actor???
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Collision Event for Transparent Actor

Postby Troodon » Sat Jan 05, 2008 9:08 am

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. :)
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Re: Collision Event for Transparent Actor

Postby Bee-Ant » Sat Jan 05, 2008 9:14 am

Well, I wouldnt know the result before try it...thanks anyway...
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Collision Event for Transparent Actor

Postby yttermayn » Sun Feb 27, 2011 5:42 pm

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.
yttermayn
 
Posts: 48
Joined: Sun Nov 25, 2007 4:10 pm
Score: 2 Give a positive score

Re: Collision Event for Transparent Actor

Postby Hblade » Mon Mar 07, 2011 5:54 pm

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.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Collision Event for Transparent Actor

Postby lcl » Mon Mar 07, 2011 6:23 pm

Lol guys, this is 3 years old topic, I think Bee-Ant has already solved the problem.. xD
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Collision Event for Transparent Actor

Postby Hblade » Wed Mar 09, 2011 12:15 am

Lol yeah
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Collision Event for Transparent Actor

Postby 157pl » Mon Mar 14, 2011 7:54 am

r u shure he may still need help he never said he got it to work :lol:
User avatar
157pl
 
Posts: 109
Joined: Thu May 13, 2010 10:49 pm
Location: AZ
Score: 3 Give a positive score

Re: Collision Event for Transparent Actor

Postby savvy » Fri Mar 18, 2011 2:23 pm

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.
--> For my help, i ask for a simple +1 if it helps! ^-^
--> I dont code, I type art which you dont understand.
--> I keep winning the 3D model challenge at college, teacher says: "you keep winning im not giving you prizes".
User avatar
savvy
 
Posts: 494
Joined: Wed Jun 03, 2009 11:55 am
Location: England
Score: 44 Give a positive score

Re: Collision Event for Transparent Actor

Postby Game A Gogo » Fri Mar 18, 2011 8:18 pm

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
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Collision Event for Transparent Actor

Postby Bee-Ant » Sat Mar 19, 2011 4:39 pm

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...
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest