Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - rocko775

#1
Sweet! It worked. Thanks.

I'm just wondering can you get him to do more spots than two, like a square or is really complex? I'm not going to do it, I just would like to know if it's possible.
#2
Well it should work but now all he does is have a walking movement, but he doesn't go anywhere. It works if I do function room_AfterFadeIn(), but not function room_RepExec(). And if I do afterFadeIn he only does it once,

Code: ags
function room_RepExec()
{
cguard.Walk(26, 185);
cguard.AddWaypoint(220, 140);
}


I have version AGS 3.1.2 SP1 would this cause any trouble?
#3
Well I can see how that would work but now It gives me this error message. And after I posted that message I figured out that I could use use "Add way point" to get my character to go to another spot.  Would this cause trouble or having my guy walk and do this repeatedly execute function conflict?

Error:
Failed to save room room1.crm; details below
room1.asc(14): Error (line 14): '.AddWalkToPoint' is not a public member of 'Character'. Are you sure you spelt it correctly (remember, capital letters are important)?

Code: ags
function room_AfterFadeIn()
{

cguard.Walk(26, 185);
cguard.AddWaypoint(220, 140);


}
function repeatedly_execute() 
{
if(cguard.x==25)cguard.AddWalkToPoint(100, 185); //line 14
else if(cguard.x==99)cguard.AddWalkToPoint(26,185);
{



Thanks
#4
Beginners' Technical Questions / Guard Patrol
Thu 11/02/2010 17:32:56
I haven't seen anything on the forums or tutorials so I thought I'd ask. If there info is can you link me to it? Is there any way to get a character to "patrol" back and forth from points A and B? I got it so when load the screen the character goes to another spot, but I'm not sure how you get him to go back to the original spot and go on a loop back and forth so he doesn't do it once? Thanks.


function room_AfterFadeIn()
{
cguard.Walk(26, 185);

}

#5
Thanks. Glad you enjoyed it.
#6
I've been meaning to upload this game for awhile. But I forgot my ags

password and had trouble getting another one. This just a short little

game I made to see what I could do with AGS. Sorry for the uncreative

name, I was just eager to see what I could do. The game is basically

Simon (the Sorcerer) get roped into another world again, this time for

a adventure game convention. Now he has to figure out how to escape.

Yes I know the graphics for all the characters are from their games. I

don't take credit for that, but I did make all the backgrounds and

inventory objects (except that key). If I do another game I hope to expand my skills of AGS. The Music I downloaded off freeware websites. Enjoy!







22MB
http://uploading.com/files/77m27483/The%2BQuest.zip/
http://www.sendspace.com/file/mdtfpk

SMF spam blocked by CleanTalk