walk before interact

Started by eric_sp, Mon 26/07/2004 17:23:21

Previous topic - Next topic

eric_sp

i've been messing up with the AGS demo game around here, and i was trying to do the following, on the first room, where there's a car and a bar:

1. Interact Click on car (there's no room for inside the car)
2. Character walks to the car door.
3. A message is displayed (something like "the car door is unlocked")
4. The character disappears (transparent), and he is unclickable from this point.
5. Clicking anywhere on the screen makes character exit car (non-transparent and clickable).

Well, the 4 and 5 steps doesn't matter much.
But, i did a WalkStraight, placed the coordinates, and made a conditional, where, the msg should be displayed when character in on the respective coordinates.
I did a lot of efforts today, but none of them worked.
First the character was displaying the message before walking.
Then, after some changes, he was only walking to the car, without no message.

What should I do, for walking from point A to B, and then display a message only when B is reached?

Also, anyone knows where can i download ready background, scenarios, rooms, objects, etc? I do not have time right now for making those, and i need to learn some thing first, so that would be great.

monkey0506

Well, for backgrounds and objects and stuff there's the instagame project...

www.sylpher.com/ig/

Not sure that I'd be of any help with the rest...

Barbarian

#2
Not sure I follow all what your saying, but if you're using the AGS editor options to make the character walk, then choosing a "Character - Move Character" command, then set the "Wait for move to finish" to the "True" setting. If doing it through a script, then you might use the MoveCharacterBlocking command...
Example: MoveCharacterBlocking(EGO, 120, 118, 1); would move the character EGO to x postion of 120, and y position of 118, and the "1" indicates to wait untill he finishes walking there before running the next command in the script.
Conan: "To crush your enemies, see them driven before you, and to hear the lamentation of the women!"
Mongol General: "That is good."

Blade of Rage: www.BladeOfRage.com

Ashen

I think Barbarian's right about the walking problem. (I was going to say more, but he posted while I was typing.)

As for graphics, InstaGame as suggested, or the RON site ( http://ron.the-underdogs.org ) might help. Don't know if you're allowed to use them in a non-RON game, but if you're just playing around with AGS it shouldn't be a problem
I know what you're thinking ... Don't think that.

eric_sp

Thanks a lot. I'm sorry if you had troubles to understand what i meant, but you all got it right.
(I'm brazilian.) I learned english playing Space Quest and Chrono Trigger.
My school has a very bad English teacher. And my winter vacations are almost over, that's so boring... Gotta get back to High School again...

I'll try to use MoveCharacterBlocking, and i'll check out the instagame and ron, at the HOTU (i already knew HOTU, but i never heard about this graphics part on it).

Any new doubts, I'll bring it up. And thanks again.

Barbarian

Glad we could help eric_d.
       I'd say your use of English is really good considering you picked it up from playing video games  :)
       I understood your words and grammer you typed before. I guess your "bar" and "car" descriptions is what confused me a little, so I wasn't 100% sure of what you were trying to do, but I figured it out.

Best wishes.
Conan: "To crush your enemies, see them driven before you, and to hear the lamentation of the women!"
Mongol General: "That is good."

Blade of Rage: www.BladeOfRage.com

eric_sp

Hey, I hadn't time to try the code yet. I was trying to import the instagame/ron stuff to my game. But the GUI I got (from ron.HOTU) has some script problem, that I deal with later.

Right now, I was checking some games that I downloaded. One is lazarus wants pants, a joke game. It's graphics sucks, when on the higher resolution. But when I choose 320 x 240, all the graphics turn pixelated.
So I'd like to know, if it's possible to put high res graphic on my game, and then force 320 x 240 res. Is it possible?

Scorpiorus

Well, you can choose a lower resolution via the game setup (there are also speedhack-like possibilities to force it) but, the question is: why would you need to draw a high resolution graphic if you then eventually want to reduce it? Isn't it easier just to do all the work in 320x240?

SMF spam blocked by CleanTalk