Discord
Login
Community
DARK THEME

How i can make a command if sprite touch sprite

// it is right

player = object sprite = "Maincharackter"//or the name of my sprite end

Item = object sprite = "besen" end

if player touch besen then draw = function() screen.clear screen.drawMap("informatikraum",0,0,500,200) screen.drawSprite("maincharaktermitbesen",x,y,20,20)

I have an example here that returns true if 2 sprites overlap: https://microstudio.dev/tutorials/examples/JimB007/spritesoverlap/

thanks

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community