User Tag List

Results 1 to 9 of 9

Thread: Condition for shift and key press?

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Feb 2007
    Location
    UK
    Posts
    243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Condition for shift and key press?

    I need to implement debugging controls while making my game. I need to be able to press a key to centre on a coordinate in my 6400x4800 frame and then teleport my player to that area.
    I've got 100 rooms in my frame so I can only reasonably set conditions for the first 40 rooms. So pressing key 1 centres on 320x224 and pressing key ? centres on 6080x1664.

    But I need more keys to be able to jump to any of the 100 rooms. I also need to be able to set player position with a key press related to that room. So having pressed ? to centre on 6080x1664 I also need to press SHIFT and ?, for example, to teleport my player.

    Setting key presses in MMF2 only seems to allow one single key press. Like if I wanted / I need shift and ? but MMF2 only takes the shift key as pressed.

    Is this not possible?

  2. #2
    Clicker Multimedia Fusion 2

    Join Date
    Feb 2007
    Location
    UK
    Posts
    243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It doesn't look possible to me. So in the absence of that option how would I do this:

    Type a word on the keyboard and a box appears, into which you type a number, 55 say, and the screen centres at 2880x2640 and teleports the player to this area too. How would I do this?
    A cheat mode effectively that allows the player to jump to any of the 100 rooms in my game; but also a useful debugging tool!

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Feb 2007
    Location
    UK
    Posts
    243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Never mind I found a way. Using a Popup Menu. I've added each room number to a list with sub menu for each possible exit in each room. I've added conditions that make the popup menu appear when the mouse is double-clicked, then picking room 19 - red door exit - for example - centres the screen at 5440 x 720 and changes the player position. It works a treat and very useful for play testing and debugging.

    If I left it in as a cheat mode I'd probably need some sort of hidden password that locks the double-click of the mouse. I found a tutorial for that so I'll give that a go.

    Once I've got it working I'll post here what I did for others. Might be a while though because I've got lots of things going on with my project.

  4. #4
    Clicker Multimedia Fusion 2
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ZycroNeXuS's Avatar
    Join Date
    Dec 2013
    Location
    Everywhere
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I'm understanding this correctly, this is a simple solution.

    You can set up multiple conditions for an event, so if you set up one key as a condition, then right click on that condition, in the context menu is an option called Insert. click that, and you can set up another key. This will add another condition to the event, which will activate the event when both the shift and number key is pressed, and ONLY when they are both pressed.

    Hope this helps!
    Ethan

  5. #5
    Clicker Multimedia Fusion 2

    Join Date
    Feb 2007
    Location
    UK
    Posts
    243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That was the first thing I tried Zycronite - it doesn't work, it ignores whatever keys you insert in the same condition. Well, it doesn't work in MMF2.

  6. #6
    Clicker Multimedia Fusion 2
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ZycroNeXuS's Avatar
    Join Date
    Dec 2013
    Location
    Everywhere
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's quite odd, that normally works for me. I'm afraid I don't know a bunch about the more technical aspects of MMF2, so I can't really help beyond that. It seems you've found an alternative solution, however, so good luck on your project. The screenshots I've seen posted around the last few topics look pretty good!

  7. #7
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    Condition for shift and key press?

    You want to implement a key press while another key is held? If so:

    -repeat while shift key is pressed
    +user presses ? Key

    Use that event

  8. #8
    Clicker Multimedia Fusion 2

    Join Date
    Feb 2007
    Location
    UK
    Posts
    243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ratty
    You want to implement a key press while another key is held? If so:

    -repeat while shift key is pressed
    +user presses ? Key

    Use that event
    Now why didn't I think of that?! Thanks ratty.

    Why can't I quote other peoples posts? I can only quote my own - which is weird. Had to put above quote in my own tags.

  9. #9
    Clicker Multimedia Fusion 2
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ZycroNeXuS's Avatar
    Join Date
    Dec 2013
    Location
    Everywhere
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ratty View Post
    You want to implement a key press while another key is held? If so:

    -repeat while shift key is pressed
    +user presses ? Key

    Use that event
    That was so obvious.

    I'm kicking myself now.
    Oh well, the solution was found. Good luck on your project, soopytwist.

Similar Threads

  1. Shift key
    By MdNelson in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 14th September 2013, 09:12 PM
  2. Paradigm Shift
    By Evilized79 in forum iOS Export Module Version 2.0
    Replies: 24
    Last Post: 14th June 2013, 06:38 AM
  3. Shift hue?
    By Mantis in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 23rd August 2010, 10:06 PM
  4. Left- or Right-Shift
    By p6r in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 22nd November 2008, 04:38 PM

Posting Permissions

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