Is there a way to make an item/sprite appear/dissapear in different rooms?

For context, I'm beginning work on my first Pulp game (well, the first one that I might actually finish :sweat_smile:) I want to know if there is a way to make a string of code that will make a trophy item in another room, and have different dialog when interacting with it in the new location. Furthermore, I have two tiles already named (treasurespot and toycar) and I want the treasurespot tile to dissapear and the toycar to appear where it was. Sorry for the long explanation, all help is appreciated! Thanks!

Hi about treasurespot. so how i understood you want to dissapear a one tile and collect an item (toycar)?
if you have tile sprite treasurespot and tile items toycar you can try this script for treasurespot sprite

on interact do
swap "toycar"
end

looks simple but should works

1 Like

Ah, thanks! I'll try it and see how it works

Edit: changed how the toycar and the treasurespot tiles work, the toy car is now an item instead of a sprite and has a sprite version that is placed down, and the code looks like this if anyone wants to do something similar:
on interact do
if toycars==1 then
say "You placed down the toy car. It looks beautiful!"
swap "toycar2"

Thanks for the help!

1 Like