Discuss Scratch

Brain52
Scratcher
21 posts

How to find point of collision on 1.4

I'm working on a scratch 1.4 mod and was wondering if there is a way I could make a block that gets the location of a collision between two sprites.
i.e.
(collision x between me and [sprite2 v])
and
(collision y between me and [sprite2 v])

Last edited by Brain52 (Nov. 8, 2018 01:13:20)


Hewwo, I iz nerd
Come check out my profile here

I can see your hidden projects(maybe)… here

play beans ultra: my followers get a free bean!
Invisible_Factory
Scratcher
500+ posts

How to find point of collision on 1.4

Workaround would be to compare x and y coordinates.
Sprite1 at (x1,y1)
Sprite2 at (x2,y2)
if (x1 = x2) and (y1 = y2):
Collision Point = (x1,y1) or (x2,y2), they are the same point.
else:
not collided

Currently, I have 823 posts.
(Also, suggest things I should put on here. The white space is sad.)
There's nothing else here. Just a white space. ↓





Powered by DjangoBB

Standard | Mobile