How to show an actor on only ONE layer ?

Talk about making games.

How to show an actor on only ONE layer ?

Postby StarFishDesign » Tue Aug 01, 2006 5:19 pm

Hello again,

After some preworking - drawing gfx, composing music and searching suitable sfx - I started with my game...

Now I've implemented a nice feature: shadow of the player's ship on elements below. But what, if there is space below thos elements? The shadow will show up on the space-layer too ;) (see screenshot)

Image

You can see the shadow on the wreck-layer and on the space layer too.
Both layers are scrolling on different speeds... I only want the shadow to appear on the wreck-layer. Any body an idea?

Thanks!
Regards
--
www.starfishdesign.at | Webdesign & Gamestudio
ironfury | the menace | Space Shoot'em up for WindowsMobile
User avatar
StarFishDesign
 
Posts: 39
Joined: Sun Dec 04, 2005 7:27 pm
Location: Austria
Score: 0 Give a positive score

Postby irblinx » Tue Aug 01, 2006 7:18 pm

If your ship moves at a constant speed you could use collision detection on the wreck/shadow to turn on/off your shadow.

I.e. set up filled region actors parented to the shadow, one at the front and one at the back to turn on and off respectively, you'd probably have to cheat with the edge colours of the wreck to make this smooth though.
irblinx
http://www.irblinx.me.uk/Crania.htm
Current projects: Crania deluxe for Mac, iCrania
User avatar
irblinx
 
Posts: 122
Joined: Wed Apr 19, 2006 11:15 am
Location: Manchester, UK
Score: 6 Give a positive score

Postby StarFishDesign » Tue Aug 01, 2006 7:23 pm

Thanks, but I meant that the shadow will appear on the wreck during flight.
With collision I can only switch it on and off, not make it appear line for line to look good... know what I mean?
Regards
--
www.starfishdesign.at | Webdesign & Gamestudio
ironfury | the menace | Space Shoot'em up for WindowsMobile
User avatar
StarFishDesign
 
Posts: 39
Joined: Sun Dec 04, 2005 7:27 pm
Location: Austria
Score: 0 Give a positive score

Postby MaDsk8tard » Tue Aug 01, 2006 10:07 pm

solution : remove your shadow or make a full dark background ^^

for me , it's impossible to do what you want with GE ;)
User avatar
MaDsk8tard
 
Posts: 19
Joined: Thu Jul 20, 2006 8:17 pm
Score: 0 Give a positive score

Postby StarFishDesign » Tue Aug 01, 2006 10:21 pm

MaDsk8tard wrote:solution : remove your shadow or make a full dark background ^^

for me , it's impossible to do what you want with GE ;)


Haha :x
Umm, let`s see...
Regards
--
www.starfishdesign.at | Webdesign & Gamestudio
ironfury | the menace | Space Shoot'em up for WindowsMobile
User avatar
StarFishDesign
 
Posts: 39
Joined: Sun Dec 04, 2005 7:27 pm
Location: Austria
Score: 0 Give a positive score

Postby DilloDude » Wed Aug 02, 2006 2:29 am

As far as I can figure, you'd need script to draw on a canvas. The problem is that drawing transparency can take a fair bit of performance, so you'd want to optimize it to only draw where there was a change.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Postby Hyperyon » Wed Aug 02, 2006 8:26 am

On the shadow add collision with space layer and make it transparent. Then allow shadow to appear on wreck layer with another collison event.
Of course the space and wrecks should be separate actors. I'm not sure what yur pushing for, but thats what I'd do :)
Lets keep our dreams alive!
Hyperyon
 
Posts: 148
Joined: Sat Jun 24, 2006 1:29 pm
Score: 0 Give a positive score

Postby StarFishDesign » Wed Aug 02, 2006 7:22 pm

Hyperyon wrote:On the shadow add collision with space layer and make it transparent. Then allow shadow to appear on wreck layer with another collison event.
Of course the space and wrecks should be separate actors. I'm not sure what yur pushing for, but thats what I'd do :)


Thanks, that worked... but the shadow only disappears when completely moved outside the wreckage layer. So the player can see the shadow some seconds on the space layer until it disappears.

Damned... :(
Regards
--
www.starfishdesign.at | Webdesign & Gamestudio
ironfury | the menace | Space Shoot'em up for WindowsMobile
User avatar
StarFishDesign
 
Posts: 39
Joined: Sun Dec 04, 2005 7:27 pm
Location: Austria
Score: 0 Give a positive score

Postby Hyperyon » Wed Aug 02, 2006 7:59 pm

Try making an addition with collision finish with wreks and destroy actor shadow :?
Lets keep our dreams alive!
Hyperyon
 
Posts: 148
Joined: Sat Jun 24, 2006 1:29 pm
Score: 0 Give a positive score

Postby StarFishDesign » Wed Aug 02, 2006 8:02 pm

Hyperyon wrote:Try making an addition with collision finish with wreks and destroy actor shadow :?


I already did that.
The solution was the above mentioned 1-2 second gap where the player can see the shadow on the space-layer :(
Regards
--
www.starfishdesign.at | Webdesign & Gamestudio
ironfury | the menace | Space Shoot'em up for WindowsMobile
User avatar
StarFishDesign
 
Posts: 39
Joined: Sun Dec 04, 2005 7:27 pm
Location: Austria
Score: 0 Give a positive score

Postby makslane » Wed Aug 02, 2006 8:29 pm

You can try make a fade. This will minimize the user perception.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby StarFishDesign » Wed Aug 02, 2006 8:31 pm

makslane wrote:You can try make a fade. This will minimize the user perception.


Hmm, thats an option.
You're right ... I'll give it a try tomorrow.
Thanks!
Regards
--
www.starfishdesign.at | Webdesign & Gamestudio
ironfury | the menace | Space Shoot'em up for WindowsMobile
User avatar
StarFishDesign
 
Posts: 39
Joined: Sun Dec 04, 2005 7:27 pm
Location: Austria
Score: 0 Give a positive score

Postby MaDsk8tard » Wed Aug 02, 2006 10:21 pm

good idea for the fade ;)
User avatar
MaDsk8tard
 
Posts: 19
Joined: Thu Jul 20, 2006 8:17 pm
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest