how to

Hello.
I am just learning GS and I have gotten stuck. I want to make, in essence, a unicycle that rolls on the ground when pushed(by either mouse down, or finger swipe) and the wheel spins in the direction of the unicycle. Any help would be great. thanks!

Answers

  • SmokeyAce73SmokeyAce73 EarthMember Posts: 370

    The easiest way is the create an animation of the unicycle moving left and right, also have a still of the unicycle facing left and right.

    Create 2 Boolean rules
    Move Left

    Move Right

    On the left controller

    Rule
    touch is pressed
    do
    move in direction 180 at chosen speed

    change attribute game.moveleft to true

    On the right controller

    Rule
    touch is pressed
    move in direction 0 at chosen speed

    change attribute game.moveright to true

    On the unicycle create 2 rules:
    Rule
    attribute if game.moveleft is true_
    do
    animate (with the animation of the unicycle moving left)
    else
    change image (to the still of the unicycle facing left

    Rule
    attribute if game.moveright is true
    do
    animate (with the animation of the unicycle moving right)
    else
    change image (to the still of the unicycle facing right

    Developer For BLUNTentertainment - Feel Free To Message Me! - Free Beginner Templates!

  • SmokeyAce73SmokeyAce73 EarthMember Posts: 370

    Not sure what went on with the boldness :/ hope it helped

    Developer For BLUNTentertainment - Feel Free To Message Me! - Free Beginner Templates!

  • matthewboylematthewboyle Member Posts: 2

    thanks for the help. I will attempt what you have suggested and let you know if I get it.
    thanks again.

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

    @SmokeyAce73‌

    Apparently, if you add a hypen (dashed line) below text, it bolds the text. Also, if you add an underscore on both sides of text, it italicizes it.

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

  • SmokeyAce73SmokeyAce73 EarthMember Posts: 370

    Haha thanks @tatiang I just realised

    Developer For BLUNTentertainment - Feel Free To Message Me! - Free Beginner Templates!

Sign In or Register to comment.