Crosshair touch

evertevert Member Posts: 266

Hi all! i'm looking for a code :)

I need something when touch is pressed an actor (crosshair) shows up under your finger. When you move your finger it stays under there, when you lift your finger up it goes away.

Someone spare a code?
thanks

Comments

  • colandercolander Member Posts: 1,610

    Have a look at this

  • evertevert Member Posts: 266

    Great! thanks!
    I got something similar at the moment.

    But the problem is it needs to disapair when there is no touch.
    What i did was when mouse button is up destroy actor, and when mouse button is pressed spawn actor. But it din't work so well...

    any idea's?

  • colandercolander Member Posts: 1,610

    Switch the alpha on and off. Add a Change Atttribute to your rule - self.Color.Alpha To 1 and in the otherwise section - self.Color.Alpha To 0.

    Your actor will still be live just not visible until you touch it.

  • evertevert Member Posts: 266

    You are a awesome! thankyou!

Sign In or Register to comment.