X position to X Mouse - No Keyboard left right ?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Simple question

    Breakout Game:

    Mouse and Keyboard movement problem

    I set

    Always -> Set X position to XMouse ( Mouse movement works )
    But when adding "Select movement from the paddle" ( Eight Directions ) it dont works with the keyboard.

    When deleting the XMouse it works with the keyboard but no longer with the mouse.

    Any ideas to this little problem ?

    Thanks in advance.

  • Because you are always setting the X coordinate of your active to the Xmouse ! So every moviment you would make in the x-axe it would always re-setted to the Xmouse . To avoide this just add a variable :

    var "move"

    move = 0 >
    Set X position to XMouse

    Select on your active the eight direction , then just change the variable to one when you want it to work with the keyboard

    My game No God for Us Please login to see this link.

  • Hi there Peanuts,

    use a counter or a flag.

    if your holding the right or left the the counter to 1
    if you are not holding the right or left set the counter 0

    if the counter = 0 Set the X to pos of the object = the X pos of the mouse.

    I'll post an example in a few.

    Please login to see this link.Please login to see this link.
    Take a course in Clickteam Fusion Please login to see this link.
    Youtube Please login to see this link.
    Please login to see this link.

    Edited once, last by Triadian: more helpful less hurtful. (January 30, 2017 at 8:03 AM).

  • guys i know you are ALL trying to be helpful and thats a good thing, but personal jabs at each other only adds toxicity to our community that we would prefer to stay nice and helpful.

    @sparkman - please ensure you quote the correct solution provider, otherwise people think you are on some crusade to harass them. your not right ? <Infraction given>
    danjo - if you know what he's doing why bite ? just ignore. stay happy.

    peanuts - danjo has explained why your problem is happening and both esp and sparckman are offering the same solution which is to use both ways at the same time, which should work once you understand what they are trying to say and implement it correctly, good luck.

    Please login to see this link.

    Clickteam on Please login to see this link. - Clickteam on Please login to see this link. - Clickteam on Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!