Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: G on Fri 24/02/2006 23:29:13

Title: "Projecting" forward the character
Post by: G on Fri 24/02/2006 23:29:13
Hi there.

I have a problem with my character. I used the KeyboardMovement Module of Rui and Strazer, but now I want to make my character able to jump forward. But how can I make my character able to jump forward? Does AGS have any way to recognise when the character is looking to the left or to the right?

The principal question is How can I "project" my character foward when he is not walking?

Shall I modify the Module? Then how Do I make it?

Thanks
Title: Re: "Projecting" forward the character
Post by: Ashen on Sat 25/02/2006 11:50:39
You can check which 'loop' the character's currently using to check their facing (0 is down, 1  is left, etc, as in the 'View' editor).

As for how to actually make them jump - there're a couple of ways. You could temporarily alter their view to one with a jumping animation, and move them forward, you could animate the jump including movement and directly change their coordinates, and there're probably other ways - check out some of the Open Source Games (http://americangirlscouts.org/agswiki/index.php/Open_Source_Games), the first 2 or three in 'Other' I think include jumping). How you'd change the module (except in the most basic ways) depends on which way you're using.