PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Sam & Max: Get me out of here!

Bjorn Keizers · 24 Jan 2002, 09:01 UTC
I have a minor but very irritating issue with Sam & Max full version. When I try to walk down stairs, or in my case, out of a Chuckey's, I fail on every attempt.

I managed to get out of the building by playing in landscape, with the latest version [arm] But I can't get out of the diner! My brother [who played this a lot back then] assures me you needed to right click or something to select a certain mouse function ..

Now my question is: is anyone else having these problems, and how do I overcome them.
well, once I've fixed some specific bugs in this build, I'll add a part of the screen to give better keyboard control. Sam and Max needs some very specific work though :|
Bjorn Keizers · 24 Jan 2002, 12:17 UTC — right clicking?
And that would fix this? What it in essence comes down to is, we need something to change the mouse, right? Like right click. Should be easy enough to implement.

There isn't any key or combo that might select the proper function? [like W for walk, L for look at] Too bad they didn't think we might ever play it on anything other then a PC..
I think having a "right mouse" part of the screen, that says the next click will be a right mouse click should be great, or alternatively use a hardware button. I dunno yet. I'll probably do the part of the screen one first because it's the easiest one.
Whats the possibility of adding a 'hover' button, so you can tap or drag over the play area and it acts like a 'mouse over' as opposed to a 'mouse click'?

This would help in finding 'hot spots' without actually clicking on them??
Possibly easier said than done, but I'll have a look at it tommmorow.

I'm going to go and build a slightly updated test version which has working sound, and then do some tidyups. If I can get it to work a bit better then I'll release it this w/e I think. I'll try and get right mouse working before then
The right click this is far more important than my suggestion, as a work around, you can tap and drag to find the hot-spots, just makinging sure you dont lift the stylus whilst over a hot-spot area.

Just, if you want to add anything new (like you dont have enough to do! :) ) it might be a good addition!
We should have a cursor displayed in the status bar. that way you can see your current cursor (very important in sam'n'max, as you dont have any verb-menu - 't is handled using the right mouse key).
Tapping on that cursor window would mean a right click and change the cursor.
i believe that's the best way
Here's another idea on how to handle the right-taps, and even the mouse movement issue. I think this one's a winner. ;)

Just use a hardware button for a modifier. If you hold down a specific hardware button, then your stylus taps register as right mouse clicks.
An additional hardware button could be used to indicate that you want to just move the position of the mouse, but no left click should register. You could also do the converse, and require that a specific button be held down to register a left button click, like I suggested for the right button.

Dan East
Dan East wrote:
Here's another idea on how to handle the right-taps, and even the mouse movement issue. I think this one's a winner. ;)

Just use a hardware button for a modifier. If you hold down a specific hardware button, then your stylus taps register as right mouse clicks.
An additional hardware button could be used to indicate that you want to just move the position of the mouse, but no left click should register. You could also do the converse, and require that a specific button be held down to register a left button click, like I suggested for the right button.

Dan East


We were thinking along these lines, but I don't actually know how to poll the buttons ;>

I guess I could knock up some evil settings dialog that allows you to set buttons....

But yeah, it's probably best to map both of them, I'm just tempted not to have to do the work ;>

(I'll play tonight with the hardware buttons, but I might hardcode them to my Casio for the time being (then do some sort of Settings dialog later I guess)
Dan, good one. Problem is: The cursor shows the mode you are in in Sam & Max, which means you will have to see a pic of the cursor somewhere as you wouldnt know which mode you are in otherwise... :(
Right, the Scumm engine should be drawing the cursor where it thinks the mouse is. All Andy has to do is report the last position the stylus was at the last time it was on the screen as the current mouse position to the scumm engine. When you lift the stylus the cursor just stays where its at.

Andy, you call a GAPI function to take control of the hardware keys (so pressing them doesn't launch other programs, etc, which you wouldn't want to happen even if the game wasn't actually using the buttons). Then you just process WM_KEYDOWN / WM_KEYUP windows messages. Keep an array for the buttons' state and set their up / down state in your message handlers. Take a look at the Pocket Quake I or II source, EasyCE, etc, for samples.

Dan East