Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [Help] Sprites Shader 2D?? Solution?

Author
Message
AliceSim1
6
Years of Service
User Offline
Joined: 15th Oct 2018
Location: Barcelona
Posted: 15th Aug 2019 21:12
Hello,
I have a problem when programming, the 2D shadows of each Sprite (game element) that I am interested in representing that shadow.

I have a 32x32 block a Sprite,
How can I paint a shadow of the same graphic on the screen?

I can only think of using these Sprites features ...
CloneSprite
SetSpriteDepth
SetSpriteColor
SetSpritePositionByOffset


I want a result similar to this:

Attachments

Login to view attachments
Alex_Peres
AGK Master
15
Years of Service
User Offline
Joined: 13th May 2009
Location: The Milky Way Galaxy
Posted: 16th Aug 2019 17:04
I would use another "shadow" sprite.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 16th Aug 2019 22:34 Edited at: 16th Aug 2019 22:41
this is a similar to your example image:


play with the distance and alpha (can even add direction easy enough).

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-22 16:03:57
Your offset time is: 2024-11-22 16:03:57