Point and click example

Post here your demos and examples with the source files.
Forum rules
Always post the games with a screenshot.
The file must have the ged and data files (complete game source)
Use the forum attachment to post the files.
It is always better to use the first post to put the game files

Point and click example

Postby Imperialjester » Tue May 17, 2011 9:21 pm

Hello, i have seen on the forums that some people are having trouble with point and click games. my next game im going to make has point and click so i thought i would share.

If you like it please give me a +1. :D
Attachments
PointAndClick.zip
(62.47 KiB) Downloaded 211 times
User avatar
Imperialjester
 
Posts: 185
Joined: Wed Dec 08, 2010 5:39 pm
Score: 10 Give a positive score

Re: Point and click example

Postby SuperSonic » Wed May 18, 2011 5:47 pm

Nice, I like this a lot :D
+ point :wink:
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: Point and click example

Postby Imperialjester » Wed May 18, 2011 8:11 pm

thank you, i am also working on one that doesnt use moveto. moveto seems to have alot of bugs in it =/
User avatar
Imperialjester
 
Posts: 185
Joined: Wed Dec 08, 2010 5:39 pm
Score: 10 Give a positive score

Re: Point and click example

Postby skydereign » Thu May 19, 2011 12:42 am

Yeah, MoveTo is really nice for simple things, and I love the avoid feature, but is generally unusable in more complex games. Apalia originally used MoveTo, but due to the teleportation glitches was replaced by my own moveto functions.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Point and click example

Postby Imperialjester » Thu May 19, 2011 1:47 am

can you post your own moveto code? im having a hard time figuring it out.
User avatar
Imperialjester
 
Posts: 185
Joined: Wed Dec 08, 2010 5:39 pm
Score: 10 Give a positive score

Re: Point and click example

Postby skydereign » Thu May 19, 2011 2:15 am

Sure, here is a quick version of it. The code was quite specialized to the ai system I used in apalia, so this is a slightly broader version, but allows the user to overcome some of MoveTo's bugs. Pretty simple, uses activation events for MoveFinish, but I didn't add precise movement (again due to how I was using it in apalia), but it is accurate to one frame's distance.
Attachments
moveTo.ged
(2.04 KiB) Downloaded 172 times
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Point and click example

Postby Imperialjester » Thu May 19, 2011 2:19 am

thank you +1. :)
User avatar
Imperialjester
 
Posts: 185
Joined: Wed Dec 08, 2010 5:39 pm
Score: 10 Give a positive score

Re: Point and click example

Postby Imperialjester » Thu May 19, 2011 3:06 pm

is is it posible to use "Event Actor" as the relative actor?
User avatar
Imperialjester
 
Posts: 185
Joined: Wed Dec 08, 2010 5:39 pm
Score: 10 Give a positive score

Re: Point and click example

Postby skydereign » Thu May 19, 2011 9:49 pm

I didn't make it do that, but it'd be pretty easy. The thing is you'd have to use strcmp in the function as getclone does not support "Event Actor", and the other const strings. You'd add something like this to the beginning.
Code: Select all
if(strcmp("Event Actor, relativeTo)==0)
{
    relActor=getclone(clonename);
}
else if(strcmp("Parent Actor", relativeTo)==0)
{ // should have a check to see if parent exists
    relActor=&parent;
}
// etc...


That way the Actor* for relActor can use "Event Actor", and the others.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Point and click example

Postby Imperialjester » Thu May 19, 2011 10:55 pm

okay thank you. :)
User avatar
Imperialjester
 
Posts: 185
Joined: Wed Dec 08, 2010 5:39 pm
Score: 10 Give a positive score


Return to Game Demos

Who is online

Users browsing this forum: No registered users and 1 guest

cron