Nice work, kaio. But I second what GarageGothic said about the hat. It looks weird on the poster and therefore it looks weird in your work.
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
if (character[0].y > 131) { // character is standing in walkable area 1
character[0].Walk(127,131,eBlock); //walk to door from walkable area 1
if (GetGlobalInt(28) == 0) { // if the Globalint is 0 (the default)
SetObjectView(3,2); // open door view
SetGlobalInt(28, 1); // set GlobalInt to 1 so the door will be closed next time
RestoreWalkableArea(2);
}
else if (GetGlobalInt(28) == 1) { // if the Globalint is 1
SetObjectView(3, 3); // closed door view
SetGlobalInt(28, 0); // reset GlobalInt to 0 so door will be openend next time
RemoveWalkableArea(2);
}
}
else { // character is standing in walkable area 2
character[0].Walk(127,92,eBlock); //walk to door from walkable area 2
if (GetGlobalInt(28) == 0) { // if the Globalint is 0 (the default)
SetObjectView(3,2); // open door view
SetGlobalInt(28, 1); // set GlobalInt to 1 so the door will be closed next time
RestoreWalkableArea(1);
}
else if (GetGlobalInt(28) == 1) { // if the Globalint is 1
SetObjectView(3, 3); // closed door view
SetGlobalInt(28, 0); // reset GlobalInt to 0 so door will be openend next time
RemoveWalkableArea(1);
}
}
Quote from: InCreator on Fri 09/01/2009 15:38:09
* Did you use reference stickman/character while making this room? The sizes of everything seem to be a bit off. I mean, imagine character using the door and then same character attempting to sit by desk. I suggest to take good, long look at this matter.
Quote from: KhrisMUC on Mon 05/01/2009 17:21:19
Do you mean cNpc.x / cNpc.y?
Quote from: KhrisMUC on Mon 05/01/2009 15:03:34
Character.GetAtScreenXY won't check just the character's feet but the whole sprite.
// top of the room's script:
int aim_x=100+random(100);
int aim_y=100+random(50);
// repeatedly execute:
if (Character.GetAtScreenXY(aim_x, aim_y) == cWalkingGuy) { // checks if the character has reached his temporary goal
aim_x=100+random(100); // if so, new coordinates are set
aim_y=100+random(50);
}
cWalkingGuy.Walk(aim_x, aim_y, eNoBlock);
Quote from: ManicMatt on Tue 30/12/2008 22:29:34
I keep thinking people are talking to me, when it's the other Matt!
Quote from: Pumaman on Wed 24/12/2008 14:02:32
* Added support for running normal scripts as part of dialog scripts, and thus obsoleted the run-script, dialog_request business
Quote from: ProgZmax on Fri 19/12/2008 10:02:14
I hate Tom Cruise intensely.
Quote from: PokeyFlame on Fri 19/12/2008 23:57:01
Oh my god are you making a Fallout game?
Quote from: BoG on Fri 19/12/2008 11:33:43
by the way, i'm not doing a fallout adventure, this is just practice
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.134 seconds with 15 queries.