Dad72

pickInfo on the Sprites (pickedSprite)

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

Share this post


Link to post
Share on other sites

What do you think Deltakosh. Is this possible to have its additional features in the Sprites? Please. It is really important for my project that I intend to circulate freely in the future.

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.