I am making a dungeon crawler game and i can’t figure out how to get spells to cast properly. I started off by using just projectiles then tried darts but it would not work, spells wont cast in the direction i am facing. i am on a laptop that is not the best so solutions using not much code would be appreciated. Thankssss
1 Like
If you want it to shoot at an angle, do this:
vx = cos(angle) × speed
vy = sin(angle) × speed
Beware, it uses radians, not degrees. Could you send a link to your project?
Sure! i will paste the share link (btw the game sucks right now) https://arcade.makecode.com/S58310-10223-28059-10450