Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,014 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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