Discuss Scratch

SuperB234
Scratcher
22 posts

Pen Slither.io Multiplayer

I need help making a Slither.io Multiplayer game with a scrolling background in pen, but I can't get the snake to render fast enough. Could anyone make a snake rendering script for me?

Here is the script I tried With run Without Screen Refresh :
define Render My Snake size (Snake Size) Length (Length) Color (Color)              
go to x: (0) y: (0)
clear
set pen color to (Color)
set pen size to (Snake Size)
repeat (Length)
pen up
pen down
move (-10) steps
end

Last edited by SuperB234 (Feb. 1, 2020 13:33:04)

deck26
Scratcher
1000+ posts

Pen Slither.io Multiplayer

That should be fast enough although you only need pen down before the loop and pen up afterwards. Better to share the project if you need help.
SuperB234
Scratcher
22 posts

Pen Slither.io Multiplayer

deck26 wrote:

That should be fast enough although you only need pen down before the loop and pen up afterwards. Better to share the project if you need help.
Okay i added a few things and is works. What could i do to make it look more like its slithering.
SuperB234
Scratcher
22 posts

Pen Slither.io Multiplayer

deck26 wrote:

That should be fast enough although you only need pen down before the loop and pen up afterwards. Better to share the project if you need help.
Here it is https://llk.github.io/scratch-gui/develop/#364368293
deck26
Scratcher
1000+ posts

Pen Slither.io Multiplayer

That link doesn't work for me. It's not going to look like anything but a straight line with the code you showed though. You need to introduce some variety - perhaps turning 1 degree clockwise for a few moves and then anti-clockwise for a few.
SuperB234
Scratcher
22 posts

Pen Slither.io Multiplayer

deck26 wrote:

That link doesn't work for me. It's not going to look like anything but a straight line with the code you showed though. You need to introduce some variety - perhaps turning 1 degree clockwise for a few moves and then anti-clockwise for a few.
Thanks!

Powered by DjangoBB