Discuss Scratch

sethpatch
Scratcher
5 posts

Trying to make Diep

I've been trying to re-create the game diep.io, and I need help with some things.
1. Health for the shapes
2. Shapes moving around when I use wasd.
-I've tried using the method with variables x and y and always changing them etc., but it just moves by steps. When a did controls for a, it just changed by how fast I wanted them to move. Meaning I put change the variable x to repeatedly change it by 5 but it just went 5 steps instead of smooth movement and I had to keep pressing it.
3. There is also this bug with bullet clones. I set them to when they touches the shape, I put “delete this clone” but it deletes all the bullets instead of the one bullet.

It would be awesome if anyone helped!

Last edited by sethpatch (May 3, 2017 01:47:16)

sethpatch
Scratcher
5 posts

Trying to make Diep

Bump
asivi
Scratcher
1000+ posts

Trying to make Diep

Create health variables
Use WASD keys to move
If you don't want move 5 pixels at a time decrease that value
Breck-
Scratcher
100+ posts

Trying to make Diep

1. Health for shapes can be created by making a variable for the clone ONLY (for this sprite only) and setting it
2. Try scrolling?
3. Put the “delete this clone” underneath the “when I start as clone” block, instead of a separate broadcast message
sethpatch
Scratcher
5 posts

Trying to make Diep

Breck- wrote:

1. Health for shapes can be created by making a variable for the clone ONLY (for this sprite only) and setting it
2. Try scrolling?
3. Put the “delete this clone” underneath the “when I start as clone” block, instead of a separate broadcast message

The bullet solution worked, thanks man. I'm gonna try the others.

EDIT: I tried doing the health for the triangle, and it worked, but one thing. The bullet clones don't go away when it touches the shape. Anything?

Last edited by sethpatch (May 4, 2017 03:10:15)

Breck-
Scratcher
100+ posts

Trying to make Diep

sethpatch wrote:

Breck- wrote:

1. Health for shapes can be created by making a variable for the clone ONLY (for this sprite only) and setting it
2. Try scrolling?
3. Put the “delete this clone” underneath the “when I start as clone” block, instead of a separate broadcast message

The bullet solution worked, thanks man. I'm gonna try the others.

EDIT: I tried doing the health for the triangle, and it worked, but one thing. The bullet clones don't go away when it touches the shape. Anything?
iftouchingshape?thendeletethisclone

Correct me if I'm wrong, but it detects if it is touching any clone off the original shape.
sethpatch
Scratcher
5 posts

Trying to make Diep

I actually have it to that for the shapes, but after I made the health, it stopped deleting the bullet clones. Maybe click see inside and check my scripts to see if anything is going wrong, because I don't see anything wrong.

iftouchingTriangle?thendeletethisclone

If you want to just talk in real time instead of over comments, and me on discord if you have it lelz#9503

Last edited by sethpatch (May 4, 2017 22:46:25)

the_extreme_coder
Scratcher
93 posts

Trying to make Diep

health for the shapes is a simple thing I have it here
whenclickediftouchingbullet?thenchangecube healthby-1
then once when the variable changes by 1 it change the health bar to make it less
sethpatch
Scratcher
5 posts

Trying to make Diep

I already have health down, it's just the bullet clones won't delete anymore.

the_extreme_coder wrote:

health for the shapes is a simple thing I have it here
whenclickediftouchingbullet?thenchangecube healthby-1
then once when the variable changes by 1 it change the health bar to make it less

Powered by DjangoBB