Discuss Scratch

felix98u91823
New to Scratch
3 posts

Sprite collision bug

My browser / operating system: Windows NT 10.0, Chrome 91.0.4472.77, No Flash version detected


So i created a way for my point and click character to be able to find navigate around objects like tables without graphing or nodes, but it seems that the collision works only sporadically and I cannot find a reason in the code so I am assuming it's a bug.

The character sprite collides with and moves around the purple sprites from certain angles and distances more often than others. Horizontal collisions seems to work more than vertical collisions. This almost certain feels like a bug.

Link to project:

https://scratch.mit.edu/projects/540048911/editor
samq64
Scratcher
1000+ posts

Sprite collision bug

I think this belongs in Help With Scripts.
felix98u91823
New to Scratch
3 posts

Sprite collision bug

samq64 wrote:

I think this belongs in Help With Scripts.
you sure its not a bug?
I don't see any obvious scripting solution to this.
KittyKatHunter
Scratcher
88 posts

Sprite collision bug

hello

Gotta get back to
blockin'n'bakin!

















======NO EVIL KUMQUAT GONNA GET THRU THIS WALL LOL=============
trigonometrickid
Scratcher
2 posts

Sprite collision bug

felix98u91823 wrote:

My browser / operating system: Windows NT 10.0, Chrome 91.0.4472.77, No Flash version detected


So i created a way for my point and click character to be able to find navigate around objects like tables without graphing or nodes, but it seems that the collision works only sporadically and I cannot find a reason in the code so I am assuming it's a bug.

The character sprite collides with and moves around the purple sprites from certain angles and distances more often than others. Horizontal collisions seems to work more than vertical collisions. This almost certain feels like a bug.

Link to project:

https://scratch.mit.edu/projects/540048911/editor
sorry thats not proper collision you have to use a if touching tables? inside a if moveng whatever and inside that if touching tables do change x/y by the negative of the number

Helps people with scripts

Powered by DjangoBB