Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
1 registered members (AndrewAMD), 599 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how can i make a sprite shadow #238990
12/01/08 16:50
12/01/08 16:50
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline OP
Expert
Cowabanga  Offline OP
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Hi,

How can i make a sprite shadow?

Example:


Re: how can i make a sprite shadow [Re: Cowabanga] #239108
12/02/08 18:28
12/02/08 18:28
Joined: Oct 2008
Posts: 218
Nashua NH
heinekenbottle Offline
Member
heinekenbottle  Offline
Member

Joined: Oct 2008
Posts: 218
Nashua NH
c_trace from the bottom of the model to the ground (either the bottom of the bounding box or a bottom vertex would work) and then use target to place the sprite.

Last edited by heinekenbottle; 12/02/08 18:29.

I was once Anonymous_Alcoholic.

Code Breakpoint;
Re: how can i make a sprite shadow [Re: heinekenbottle] #239199
12/03/08 07:55
12/03/08 07:55
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline OP
Expert
Cowabanga  Offline OP
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
ummmmm, can you give me an example?

Re: how can i make a sprite shadow [Re: Cowabanga] #239296
12/03/08 20:59
12/03/08 20:59
Joined: Oct 2008
Posts: 218
Nashua NH
heinekenbottle Offline
Member
heinekenbottle  Offline
Member

Joined: Oct 2008
Posts: 218
Nashua NH
Originally Posted By: Cowabanga
ummmmm, can you give me an example?


since I normally just use stencil shadows, i don't have a working script to show.

Code:
action shadowSpt()
{
    VECTOR feet;
    while(!player) wait(1);
    while(player)
    {
       vec_for_min(feet,player);
       c_trace(feet,vector(player.x,player.y,player.z - 5000, IGNORE_PASSABLE | USE_BOX);
       vec_set(my.x,target)
       wait(1);
    }
}   


untested but that was the idea.

Last edited by heinekenbottle; 12/03/08 21:00.

I was once Anonymous_Alcoholic.

Code Breakpoint;
Re: how can i make a sprite shadow [Re: heinekenbottle] #239364
12/04/08 09:31
12/04/08 09:31
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline OP
Expert
Cowabanga  Offline OP
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
ok thanks.


Moderated by  HeelX, Spirit 

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