Slice handle has already been deleted

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
Dani :)
Slime
Posts: 7
Joined: Mon Apr 30, 2018 6:59 pm
Location: Brazil

Slice handle has already been deleted

Post by Dani :) »

Hello, i am having problems with slice handles

i created a slice collection with four hero sprite slices, i gave one of them the lookup code "harry" and tried to put him in coordinates 100, 100 this way
put slice (sli:Harry, 100, 100)
when irunned the script in game it gave me an error "putslice: slice handle 1 has already been deleted"
what am i doing wrong and how should i do it?
no, i'm not making my avatar transparent, deal with it
User avatar
kylekrack
Liquid Metal Slime
Posts: 1240
Joined: Mon Jun 16, 2014 8:58 am
Location: USA
Contact:

Post by kylekrack »

Lookup codes need to be used via the "lookup slice()" command. In this case, you would have to write "put slice(lookup slice(sli:Harry), 100, 100)"
My pronouns are they/them
Ps. I love my wife
Post Reply