So I’ve been working on a horror game, and I’m trying to have it rotate, but I cant figure it out, my game link is here if any of you can figure this out https://arcade.makecode.com/S03654-82379-76372-22384
3 Likes
All I’ve got so far is to move the flashlight with the buttons. Here I set A to change by 16 whenever clicked. B is vice versa if you know what I mean. Also, welcome to the forums! It seems “MySprite” is the light source variable if that’s the problem.
Perhaps you forgot to define the “flashlight” variable in the first place?
I defined it as “flashlight attached to ‘mySprite’” to fix the bug.
Here ya go:
You probably should of seen the warning sign next to one of the blocks.
There is a “flashlight attached to (mySprite)” block if you scroll down in the Multilights extension block tab. You can use it like this:
(I changed the keys because I needed to test to make sure the code worked, but I’m on my phone.)
ooh, I didn’t think that would have a use, so I never tried it, thanks
1 Like
