Animation with touch pressed ?

oswaldev018oswaldev018 Member Posts: 34
edited September 2016 in Working with GS (PC)

Hello guys what I want is that when my actor rises to generate an animation and when lower generate another and I mean those I am working with touch pressed

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited September 2016

    Like Flappy Bird?

    If Touch is Pressed
         [rise]
         Change Attribute game.animate to true
    Otherwise
         [sink]
         Change Attribute game.animate to false

    If attribute game.animate is true
         Animate
    Otherwise
         Animate

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • oswaldev018oswaldev018 Member Posts: 34

    @tatiang said:
    Like Flappy Bird?

    If Touch is Pressed
         [rise]
         Change Attribute game.animate to true
    Otherwise
         [sink]
         Change Attribute game.animate to false

    If attribute game.animate is true
         Animate

    Friend let me Explain what I want my player Generates an an actor who is the fire of a propellant what I want to do is That When You press the screen Generates When the drive but an actor down the loose and not the fire

  • oswaldev018oswaldev018 Member Posts: 34

    @oswaldev018 said:

    @tatiang said:
    Like Flappy Bird?

    If Touch is Pressed
         [rise]
         Change Attribute game.animate to true
    Otherwise
         [sink]
         Change Attribute game.animate to false

    If attribute game.animate is true
         Animate

    Friend let me Explain what I want my player Generates an an actor who is the fire of to propellant what I want to do is That When You press the screen Generates but free when the paantalla desapares slightly like that like what is made by it barry in jetpack joride

  • WhitePantherWhitePanther Member Posts: 72

    Make a Boolean attribute,
    for ex: fire

    -When touch is pressed , change attribute(fire) to true
    -When touch is released , change attribute(fire) to false

    Inside main actor:
    -When attribute fire is true, DO
    -Every 0.1 second spawn actor (the fire actor)

    Maybe this will work.

Sign In or Register to comment.