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!
I may have posted this in the wrong forum-- sorry!
There are several threads dealing with implementing that already, try the forum search.
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.
There's a module I made called ControlModes, search for it and enlighten yourself.
@Dualnames: Brilliant! Exactly what I was looking for. Thank you very much.
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
Maybe it's because sectionend is before the funtion?
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);
}
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.