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
3 registered members (TedMar, AndrewAMD, fairtrader), 578 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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
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
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 | 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