Making the Mouse Leave a Trail

I'm making a game that will involve a lot of swiping movement. To make it look nicer, I want to add a trail that follows the user's swipes.

I guess I'm going for something like the white trail left in Fruit Ninja after swiping on the screen.

Answers

  • LovejoyLovejoy Member Posts: 2,078

    @canis2012 said:
    I'm making a game that will involve a lot of swiping movement. To make it look nicer, I want to add a trail that follows the user's swipes.

    I guess I'm going for something like the white trail left in Fruit Ninja after swiping on the screen.

    @Armelline i believe has what you're looking for.

    Fortuna Infortuna Forti Una

  • canis2012canis2012 Member Posts: 2

    @Lovejoy Where can I find that?

  • RabidParrotRabidParrot Formally RabidParrot. Member Posts: 956
    edited July 2015

    I would make two actors. One called "trailController" and an actor called "trail".

    Tell the actor that when,

    touch is inside/ Touch is outside

    Constrain attribute self.position X to Touch X
    Constrain attribute self.position Y to Touch Y

    Timer, Every .01
    Spawn "trail"

    You can then tell trail to destroy itself after so many seconds.

Sign In or Register to comment.