DaDonMike
Member
hi, i have a really hard one to work out.. for me anyway..
i have a tree and its set to its own x & y in the room.
for the tree shadow i'm redrawing the tree and setting alpha to 0.5 and set it to black and to the trees x & y.
i have a player with a torch witch is top down view and the whole rooms black but where the torch is.
i want to draw the shadow where the torch is shining at the tree.. i'm using a virtual joystick witch sets a value from 0 to 360 depending on witch way its pointing. i'm struggling to do the math so it only turns to the opposite side everytime the player is in a different location. iv looked online and cant seem to find what i'm looking for. and i'm using surfaces. but id rather it done by the way i said above. thanks
i have a tree and its set to its own x & y in the room.
for the tree shadow i'm redrawing the tree and setting alpha to 0.5 and set it to black and to the trees x & y.
i have a player with a torch witch is top down view and the whole rooms black but where the torch is.
i want to draw the shadow where the torch is shining at the tree.. i'm using a virtual joystick witch sets a value from 0 to 360 depending on witch way its pointing. i'm struggling to do the math so it only turns to the opposite side everytime the player is in a different location. iv looked online and cant seem to find what i'm looking for. and i'm using surfaces. but id rather it done by the way i said above. thanks