Hi @britzl and all,
Thank you again for the dropzone example! I’ve used it to make a little shell for a card game: GitHub - sominator/defold-hacker-battles: Simple Defold card game template using Defold-Input dragging, dropzone, and button.
Two quick questions for you:
- I’m getting blurry textures on cards as their resized upon creation, and followed the steps in this thread: Blurry sprites depending on scale - #7 by Pkeod. This seems to work, but I’m not able to save the texture profile for some reason (the default.texture_profiles tab name has an asterisk in front of it no matter how I save). What might I be doing wrong?
- Is there a way, while using the cursor to drag, to keep the dragged game object on top of all others? I’ve tried changing the z position within the cursor.DRAG block:
elseif message_id == cursor.DRAG then
print("Drag", message.id, message.group, message.x, message.y, message.dx, message.dy)
local p = go.get_position(message.id)
go.set_position(vmath.vector3(p.x, p.y, 1), message.id)
end
but this doesn’t seem to work.
Thank you!