Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Buggy Bird's Eye scrolling collisions
- Sillygamer1234
-
5 posts
Buggy Bird's Eye scrolling collisions
https://scratch-mit-edu.ezproxyberklee.flo.org/projects/1134182717
I'm working on a little experimental project of ..
The best way I can describe it is:
“A bird's eye scrolling game system”
The collisions are very buggy, Mainly I want to solve the problem of occasionally getting stuck inside walls and moving through them
Does anyone know a better way to do this?
Btw Hit G to toggle debug mode so you can see what's wrong
Thanks!
I'm working on a little experimental project of ..
The best way I can describe it is:
“A bird's eye scrolling game system”
The collisions are very buggy, Mainly I want to solve the problem of occasionally getting stuck inside walls and moving through them
Does anyone know a better way to do this?
Btw Hit G to toggle debug mode so you can see what's wrong
Thanks!
- Jareddddddd
-
1000+ posts
Buggy Bird's Eye scrolling collisions
Instead of using a switch for collision, directly operate when you are moving.
The main problem comes from the slight delay from the collision reporting, and the player acting on it's report.
when green flag clicked
forever
switch costume to [hitbox v] // changing hitbox to be within the collision
if <keys are pressed> then
if <key [a v] pressed?> then
change x by (5)
if <touching [collision v] ?> then
change x by (-5)
end
end
... // other key scripts
end
switch costume to [player v]
end
The main problem comes from the slight delay from the collision reporting, and the player acting on it's report.
- Discussion Forums
- » Help with Scripts
-
» Buggy Bird's Eye scrolling collisions