Jump to content

pickInfo on the Sprites (pickedSprite)


Dad72
 Share

Recommended Posts

Hello,

 

Would it be possible to have the opportunity to choose with 'Pick()' a Sprite. I would like to be able to delete with dispose() a sprite by clicking it.

Kind: pickinfo.PickedSprite would be great.

That is all that is missing to the sprites. It also allows to check the gold of a pick if it was click on the ground or on a sprite with pickinfo.PickedSprite.name or of delete with pickinfo.PickedSprite.dispose()

 

And aslo : Sprite[x].isVisible

Thank You Deltakosh

Link to comment
Share on other sites

  • 4 weeks later...
  • 4 weeks later...

Concerning sprite picking, what I did - awaiting for a better solution - is creating a simple invisible plane which always face towards the camera, and which size and position match the sprite's one.

 

Then I just use this invisible plane for picking the collision with the sprite. It's kinda ugly but it works very well :)

Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...