Looking for a working left-click/right-click template

Started by moonkid, Thu 03/09/2009 08:23:06

Previous topic - Next topic

moonkid

Hi,

I've just started work on my first game. AGS seems like just the tool for what I want to do, but I'm not keen on the default template. The verb-coin suits me a bit better, but what I'd really prefer is "left-click use/right-click look" interface. Now I've read through the FAQs and wiki and discovered a couple of templates that are supposed to do just that (The "AGS Left and Right Click Open Source" template and the "Beneath a Steel Sky" template). I've put these templates into the "Templates" folder, but they don't show up when I try to create a new game. I assume this is a backwards compatibility issue, as both appear to be quite old.

So my question is: Is there any was to make these older templates work with the current version of AGS, or alternatively, is there a more recent template floating around that has the same basic function?

I realise that it would be possible to script it myself, but I don't yet have much experience with the scripting tool and would rather focus on creating the graphics and text for my project.

Thanks!

moonkid

I may have posted this in the wrong forum-- sorry!

Khris

There are several threads dealing with implementing that already, try the forum search.

moonkid

I guess that's a "no". Oh well, I have found the threads you mention and I should be able to do it manually. Cheers.

Dualnames

There's a module I made called ControlModes, search for it and enlighten yourself.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

moonkid

@Dualnames: Brilliant! Exactly what I was looking for. Thank you very much.

Helme

Hi, Dualnames

I wanted to have an Bass-Interface for my next game, so I looked up your module.
Well, but as soon as I'm working on Guis I'm feeling like a total idiot.  ???
So, I importet your module and added to following to the global script:

#sectionend on_mouse_click  // DO NOT EDIT OR REMOVE THIS LINE

function on_mouse_click(MouseButton *button) {
BASSFunctions.mouse_click(MouseButton click, bool reverse=false);
}

Now, I get this error: Cannot declare pointer to non-managed type


NsMn

Maybe it's because sectionend is before the funtion?

Gilbert

Also, in a function call you shouldn't need to (should not) write the types and the names of the parameters:

function on_mouse_click(MouseButton *button) {
BASSFunctions.mouse_click(MouseButton clickbutton (?), bool reverse=false);
}

Dualnames

Quote from: Gilbet V7000a on Fri 04/09/2009 01:57:38
Also, in a function call you shouldn't need to (should not) write the types and the names of the parameters:

function on_mouse_click(MouseButton *button) {
BASSFunctions.mouse_click(MouseButton clickbutton (?), bool reverse=false);
}

That's the correct way Gilbet yes.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

SMF spam blocked by CleanTalk