Discuss Scratch

invalidaccess
Scratcher
69 posts

PROJECTILE NOT COLLIDING WITH ENEMY

so i've been working on a game where you shoot some weird extraterrestrial creatures
i coded the shooting stuff and it works %90 of the time but sometimes the projectile just not colliding with the enemy and health remains the same even though
i shoot it multiple times
Im open if you have better colliding physic ideas
here's the project https://scratch.mit.edu/projects/989481692/

Last edited by invalidaccess (March 31, 2024 09:15:14)

lgrov44
Scratcher
500+ posts

PROJECTILE NOT COLLIDING WITH ENEMY

Well, what script are you doing alrighty? If you are doing the “move ( ) steps” block, you can probably replace it with “glide ( ) seconds to x: ( ) y: ( )” and just apply the script for the duration of when that block is running.

lgrov44, an Australian Scratcher whose most famous for his follows, followed by his activity, especially on Discussion Forums, and his follower count. Is also a remix chainer and school student. Identifies as bisexual.

My top 3 favourite people:
1. @Higgies (deleted) - First Follower, Thank you so much! (Wish you could see this…)
2. @Dubstepv1 (Banned/Moved) - Remix Chainer
3. @GIitchInTheMatrix (Moved to @GlitchedThrough) - Many small things.
Still looking for one of my first followers who are still active.
invalidaccess
Scratcher
69 posts

PROJECTILE NOT COLLIDING WITH ENEMY

lgrov44 wrote:

Well, what script are you doing alrighty? If you are doing the “move ( ) steps” block, you can probably replace it with “glide ( ) seconds to x: ( ) y: ( )” and just apply the script for the duration of when that block is running.
https://scratch.mit.edu/projects/989481692/
here's the link
im using change x and change y
also using atan to find the direction
lgrov44
Scratcher
500+ posts

PROJECTILE NOT COLLIDING WITH ENEMY

invalidaccess wrote:

lgrov44 wrote:

Well, what script are you doing alrighty? If you are doing the “move ( ) steps” block, you can probably replace it with “glide ( ) seconds to x: ( ) y: ( )” and just apply the script for the duration of when that block is running.
https://scratch.mit.edu/projects/989481692/
here's the link
im using change x and change y
also using atan to find the direction
Why are the scripts so long? Anyways, I couldn't redo the bug, however, it you are sure it is still there, replace all the “change x by ( )”, “change y by ( )”, etc. With
“glide ”0“ seconds to x: ( ) y: ( )” and run the collision script during the duration of running those blocks, or reduce the number of steps but also the time between each step.

Last edited by lgrov44 (March 31, 2024 10:11:45)


lgrov44, an Australian Scratcher whose most famous for his follows, followed by his activity, especially on Discussion Forums, and his follower count. Is also a remix chainer and school student. Identifies as bisexual.

My top 3 favourite people:
1. @Higgies (deleted) - First Follower, Thank you so much! (Wish you could see this…)
2. @Dubstepv1 (Banned/Moved) - Remix Chainer
3. @GIitchInTheMatrix (Moved to @GlitchedThrough) - Many small things.
Still looking for one of my first followers who are still active.
invalidaccess
Scratcher
69 posts

PROJECTILE NOT COLLIDING WITH ENEMY

lgrov44 wrote:

invalidaccess wrote:

lgrov44 wrote:

Well, what script are you doing alrighty? If you are doing the “move ( ) steps” block, you can probably replace it with “glide ( ) seconds to x: ( ) y: ( )” and just apply the script for the duration of when that block is running.
https://scratch.mit.edu/projects/989481692/
here's the link
im using change x and change y
also using atan to find the direction
Why are the scripts so long? Anyways, I couldn't redo the bug, however, it you are sure it is still there, replace all the “change x by ( )”, “change y by ( )”, etc. With
“glide ”0“ seconds to x: ( ) y: ( )” and run the collision script during the duration of running those blocks, or reduce the number of steps but also the time between each step.
i dont think that'll work
glide block doesnt sound a good idea
but i figured it
thanks anyway

Powered by DjangoBB