Is there a way to see when a sprite hits the boundary of the screen (Not a tilemap)?
I want to make a screensaver which changes color whenever it hits a wall
Is there a way to see when a sprite hits the boundary of the screen (Not a tilemap)?
I want to make a screensaver which changes color whenever it hits a wall
there is a

that makes a sprite bounce on the screen wall you can kinda control how it works if you just change how the sprites vy or vx hits the wall
that kinda makes a screensaver but you can just also just check where the sprites x or y is and if its pass the screen and change there by or vx
i used the parameters of the screen, but just slightly before it for what i needed, eg. if sprite x < 4 or sprite x > 156 then…
If you’re not using a tile map then you could just use this bounce on wall flag
Like the DVD logo?
If you aren’t using a tilemap I believe the screen boundaries then count as walls with the “stay in screen” flag enabled on the sprite, though I would have to test that to be sure.
Yes there is. Sprite Walls Engine – Extension made by @Sonicblaston
I mean how to make it change colors when it hits a wall
You can check if the sprite crosses the border by using
If (sprite) x < 0:
Change color
And the same thing for y
I don’t know if it’ll work, but you could also try making a sprite as big as the screen that’s literally just a black rectangle with the inside transparent, and change the logos color every time it hits the rectangle.
yay thank you
You can use the color fading extension in makecode. Its this one
Here is a example game with the extension added:
No probelmimno!