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
1 registered members (TipmyPip), 18,618 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
Sprite on the wall / floor #129522
05/12/07 13:43
05/12/07 13:43
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline OP
User
tompo  Offline OP
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
How to put a spirte (f.e. large blood sprite) always on the floor / wall?
I mean if i hit soething with trace then create at this point blood sprite and now...
how to put this sprite on the wall/floor alwayas with the same pan and tilt the floor/wall is? Becouse vec_to_angle(my.pan,normal); doesn't work
I hope You understand my poor english

Great Idea... turn on "Shadow on the wall" by Mike Oldfield


Never say never.
Re: Sprite on the wall / floor [Re: tompo] #129523
05/12/07 13:49
05/12/07 13:49
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Happy Birthday Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
really easy if u traced u have the nromal vector:

so you play it so:

you=ent_create("bloodsprite",target.x,i_am_blood);
your.tilt = -asin(normal.x);
your.roll = -asin(normal.y);
vec_add(my.x,normal);//move it out one quant

Re: Sprite on the wall / floor [Re: Scorpion] #129524
05/12/07 14:06
05/12/07 14:06
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline OP
User
tompo  Offline OP
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
Quote:


OMG! Stop to post in every of your posts
"ouh...my english is sooo bad, sooory"




Sorry for my bad English

Something goes wrong becouse sprite is perpendicular to walls/floor
and I can't see a pan in Your post


Never say never.
Re: Sprite on the wall / floor [Re: tompo] #129525
05/12/07 14:13
05/12/07 14:13
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Happy Birthday Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
pan=0; and thats by default
if u want the pan!=0 u have to make it a bit longer
*search throguh old projects* nooo deleted it by formating my pc...will never see the files again :'(

edit: in any case some thing with sin and cos

Last edited by Scorpion; 05/12/07 14:14.
Re: Sprite on the wall / floor [Re: Scorpion] #129526
05/12/07 14:36
05/12/07 14:36
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline OP
User
tompo  Offline OP
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
OK My bad... I've made this by vec_to_angle(my.pan,normal);
I've had another ent in the way of traceing and it was mistake
THX for help


Never say never.

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