User Tag List

Results 1 to 7 of 7

Thread: Keyboard Simulation

  1. #1
    No Products Registered

    Join Date
    Jun 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Keyboard Simulation

    Hy everyone,

    I plan to create a little Jump and Run Game for an Touch Screen.Before i buy Multimedia Fusion i have to know one Thing.


    It is possible to Emulate the Keyboard on the Sceen?

    Clickdummy-Example:

    I want to have two Graphic-Buttons on the Bottom of the Screen. (Arrow-left and Arrow-right).
    And one movable Sprite.

    Graphic-Button 1 reperesents the left Arrow Key and Graphic-Button 2 reperesents the right Arrow key.

    It is possible by clicking with the left Mouse-Button on Graphic-Button 1, the Sprite moves to the left?
    And when i click with the left Mouse on Button 2, the Sprite moves to the right?

    The sprite has to stop when i release the Mousebutton.

    Thanks
    Achim

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Keyboard Simulation

    Yes, it is indeed possible with some extensions such as Control X to simulate key presses.

    You don't even need to emulate anything though. You can just detect both key presses and/or clicking on the buttons with the mouse.
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Keyboard Simulation

    In other words, you could:

    A) Detect when the user clicks on the button, and add to the speed and set the direction.

    B) Make your own custom movement with horizontal an gravitational variables that can be manipulated by the buttons.

  4. #4
    No Products Registered

    Join Date
    Jun 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Keyboard Simulation

    Hy RickyRombo

    Thanks, Tip A works fine. But when i set speed to 50 the Object scrolls, but stops after maybe 50 Pixels. It is possible to loop this Funktion so the Object moves while pressing the Mousebutton? I have no Idea how to do that.

    Thanks also for the other Tips.

    Achim

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Keyboard Simulation

    Use "Repeat while mouse key is pressed" and "Mouse is over object" in conjunction

  6. #6
    No Products Registered

    Join Date
    Jun 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Keyboard Simulation

    Yesss,

    that works. I follow your Hint with:

    1.
    Mouse Pointer is over (Object1)
    + Repeat while left mouse-key is pressed
    *(set Speed to 50)
    *(set Direction to left)
    2.
    Mouse Pointer is over (Object2)
    + Repeat while left mouse-key is pressed
    *(set Speed to 50)
    *(set Direction to right)

    Many, many Thanks

    Achim

  7. #7
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Keyboard Simulation

    No problem!

Similar Threads

  1. Control X key simulation
    By ASD in forum Extension Development
    Replies: 9
    Last Post: 18th August 2013, 11:59 PM
  2. 2D Water simulation
    By Magicflottant in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 3rd September 2011, 10:29 AM
  3. Array/Simulation problem
    By Iwantmyrpg in forum File Archive
    Replies: 0
    Last Post: 2nd February 2009, 04:08 AM
  4. Board Game Simulation
    By Jo_Jo in forum File Archive
    Replies: 8
    Last Post: 25th January 2009, 10:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •