Max help


    Jul 17 2006 | 2:28 am
    Hi there,
    I'm trying to make a patch at the moment which is kind of like those dancing games you see in arcades. I'm stuck... wel at the very begining... I was wondering what would be the best way to get something to light up on the screen for x amount of time, and allow it to recieve a mouse click? And that if it isnt clicked in the amount of time, nothing happens.
    I.e A piece of the patcher would light up, and you have x amount of time to click it to get your points. What are my options for going about this?
    Many thanks. Mark.

    • Jul 17 2006 | 4:17 am
      The timer object is what you need.
    • Jul 17 2006 | 4:21 am
      Take a look at this :
      First click the start button, if you click on stop within 5 seconds nothing happens, if you click after 5 seconds the ">" object will output one :
    • Jul 17 2006 | 4:28 am
      A really effective way of going about doing that would be to use the LCD object. I've recently just started delving into it myself and it is extremely versatile. It could easily do what you need.
      Nic
    • Jul 17 2006 | 4:57 am
      Hey again,
      I was wondering about the LCD thing, but does that recognise a mouse click in a certain area of it when a drawn object appears? An can you control what happens after you click on the drawn object. I was under the impression that the lcd is useless because it lacks interactivity.
      To Nathanael, do you think if i used the timer object with pictctrl objects, I may be able to achieve what im looking for?
      At the moment I have 40 pictctrl objects being lit up from 1 to 40, at random by urn, but how would I get all 40 to turn off individually after a set amount of time they have been on? Also, is there an option to make the pictctrl object not responde once its not lit up. Im asking this because I dont want anything to happen if the user accidently clicks on a pictctrl that isnt lit up, when they are rushing to get the correct lit up one.
      Really really appriciate all your help on this lads, its important to my studies at the moment in college.
    • Jul 17 2006 | 9:06 am
      > I was wondering about the LCD thing, but does that recognise a mouse click > in a certain area of it when a drawn object appears? An can you control what > happens after you click on the drawn object. I was under the impression that > the lcd is useless because it lacks interactivity.
      [lcd] has one outlet for mouse down positions, and one for idle mousing positions. idle mousing has to be activated with a "idle 1" message to the lcd object.
      when you click into lcd you will always know where you click, because a click is already triggering the mouse down position.
      the job you described is perfect for lcd - you only have to compare the center position of your spaceship rectangle with the click location and you know if you hit it. :)
      - Planet 110
    • Jul 17 2006 | 5:51 pm
      Hey roman, thanks for the info...
      I was just wondering, I'm a real beginner at most of this, and especially the LCD... I was wondering could you outline in a bit more detail how I could go about doing this with the LCD..
      Very much appreciated, Mark.