100% Transparency but still can collide???

Talk about making games.

100% Transparency but still can collide???

Postby Wertyboy » Fri May 20, 2011 7:14 am

How?
User avatar
Wertyboy
 
Posts: 543
Joined: Tue Jun 15, 2010 12:38 pm
Location: HCM City, Vietnam
Score: 44 Give a positive score

Re: 100% Transparency but still can collide???

Postby skydereign » Fri May 20, 2011 7:20 am

I'm going to assume that means you want to have collisions when an actor is invisible. All you need to do is change their visibility state to DONT_DRAW_ONLY.
Code: Select all
VisibilityState("Event Actor", DONT_DRAW_ONLY);
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: 100% Transparency but still can collide???

Postby Wertyboy » Fri May 20, 2011 8:36 am

You always help me.... 1+ point for you
User avatar
Wertyboy
 
Posts: 543
Joined: Tue Jun 15, 2010 12:38 pm
Location: HCM City, Vietnam
Score: 44 Give a positive score

Re: 100% Transparency but still can collide???

Postby sonicfire » Fri May 20, 2011 11:04 am

and (if i remember correctly) - dont do anything in the draw event of that actor, otherwise
DONT_DRAW_ONLY will still draw the actor!
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score

Re: 100% Transparency but still can collide???

Postby skydereign » Fri May 20, 2011 11:08 am

Nope, if that is happening for you it's probably a bug. That state skips the drawing of the actor, but all events act as if it was there.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: 100% Transparency but still can collide???

Postby sonicfire » Fri May 20, 2011 5:10 pm

you´re right :shock: then i dont know where i got this from.
weird. i remember experiencing this often... ok must be my mistake
somewhere else then. sorry :)
sonicfire
 
Posts: 425
Joined: Wed Nov 01, 2006 9:34 pm
Location: berlin germany
Score: 16 Give a positive score

Re: 100% Transparency but still can collide???

Postby lcl » Sun May 22, 2011 9:19 am

For some reason DONT_DRAW_ONLY doesn't work always for me either.. :o
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron