Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
player shadow on ground #386607
11/06/11 12:42
11/06/11 12:42
Joined: Feb 2006
Posts: 124
Dallas,TX
Delirium Offline OP
Member
Delirium  Offline OP
Member

Joined: Feb 2006
Posts: 124
Dallas,TX
I'd like to put a shadow just below the players feet, all the time. I tried writing a player_shadow action to attach to a simple ball I squashed vertically, then set it translucent. I also tried adding something like player.shadow = on; in the player action. I finally got a large level working and the character walking around. It just looks unnatural without some kind of shadow below the player. Probably ditto the npcs in the level so I'd like to know the right way to put shadows at model's feel. Your help is appreciated. perhaps some kind of shadow casting light? Seems a transparent grey sprite or something would work well enough.


Learning to write lite-C -- A8 commercial
Re: player shadow on ground [Re: Delirium] #386608
11/06/11 12:47
11/06/11 12:47
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
I know you're just starting with lite-C, but the searchable manual answers this question in 1 second. wink
Write "set(my,SHADOW);" in the player action. The default shadow is a decal shadow, you may or may not want to have stencil shadows or even shadow mapping/ PSSM (see manual).


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: player shadow on ground [Re: Superku] #386609
11/06/11 12:59
11/06/11 12:59
Joined: Feb 2006
Posts: 124
Dallas,TX
Delirium Offline OP
Member
Delirium  Offline OP
Member

Joined: Feb 2006
Posts: 124
Dallas,TX
Thank you. The only defense I can offer for not finding that in the manual is that between studying the code in examples I've downloaded and the many help systems there is a lot to go through, and my time to be at my computer when family isn't distracting me is precious. I apologize. This should have been in a beginning forum category. Code is just, you know, unforgiving. A single bracket overlooked can drive you to pulling your hair out.


Learning to write lite-C -- A8 commercial

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1