Walk to a hotspot

Started by manny.p, Thu 16/06/2005 22:09:41

Previous topic - Next topic

manny.p

I've been trying to make my character walk to a hotspot on my intro, but i can only make them walk to the codinants and nothing happens.

I need walk to and not when player stands on, because i want them to walk off the screen, and the only way i know how to do that is using >er on the hotspots name.

1. If someone can tell me how to use the walkto or use command on a hotspot in script

OR

2. Tell me how to use the >er(exit)(right) command in script so the character goes off the screen



PS. How do i turn txt spelling off

strazer

Quote1. If someone can tell me how to use the walkto or use command on a hotspot in script

For example
  hotspot[3].RunInteraction(eModeWalk);

But I'm not sure what your problem is exactly. You want a cutscene that lets a character walk to a certain point in the room, then have him walk off the screen, then put him in another room? How about this:

Code: ags

  cGuy.Walk(200, 150, eBlock, eAnyWhere); // walk to x=200 y=150 and wait until character has arrived (=blocking)
  cGuy.Walk(330, 150, eBlock, eAnyWhere); // walk character off right side of screen
  cGuy.ChangeRoom(2, 10, 150); // then put character in room 2 at x=10 y=150


I'm not familiar with the MI2 template you're using so maybe I misunderstand your problem.

(The txt-style spelling correction (makes "you" out of "u", "are" out of "r" etc.) is a forum feature and can't be turned off by users AFAIK.)

SMF spam blocked by CleanTalk