Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Raycaster not working
- QwertyCoder098
- Scratcher
17 posts
Raycaster not working
I'm making a raycaster using this tutorial, but it's not working. Here's the link: https://scratch.mit.edu/projects/617569881/editor/
- Jareddddddd
- Scratcher
1000+ posts
Raycaster not working
in your casting scripts, where it casts the rays (wall sensing sprite), it only takes the current player direction and adds the angle offset. The script for setting the current direction should be outside the (repeat 96) loop, and inside should be a
turn cw (1) degreesafter the repeat until loop
- QwertyCoder098
- Scratcher
17 posts
Raycaster not working
I did that, but it's still not working. in your casting scripts, where it casts the rays (wall sensing sprite), it only takes the current player direction and adds the angle offset. The script for setting the current direction should be outside the (repeat 96) loop, and inside should be aturn cw (1) degreesafter the repeat until loop
- Discussion Forums
- » Help with Scripts
- » Raycaster not working