Page 1 of 1

Start moving something else. stoping the main character

PostPosted: Fri Aug 15, 2008 10:10 am
by firerfun
ok heres what i want to do.

when the charcter hits a certain point i want him to stop and someone else to come up to him.

i already have the path drawn out for the other character and i figure its gunna end up being somehting triggered by collision with that spot but i cant for the life of me figure out how to do this

Re: Start moving something else. stoping the main character

PostPosted: Fri Aug 15, 2008 1:18 pm
by Thanx
ok, probably the best thing to do, is to make a 2 x 2 little graphic, make the top-left pixel of an odd color, and also the pixel to the right of it, and the one beneath it. The bottom-right pixel should be a color similar, or hopefully the same of the background (or the color the spot would otherwise be).

Create an actor "spot", or if you plan to make several of these spots in the game, then "spot1'. Put the actor in place BEFORE you add the animation, so you see where it is, otherwise by the time you find it, are able to click on it and move it, you'll get frustrated and all... :P

In the Collision event of the character, with spot or spot1, do this:
directional_velocity = 0;
//If you don't want to let the player move the character untill the animation is over, then add these lines:
EventDisable();
//Probably it' better to choose the actions through the variables/functions button, and choose to disable the actions which
//would move the actor. As I understand you have a path to move this actor. So here we go:
ChangePath(the paath and actor..);

That's it there. Now to finish it all up, we need a PathFinish for the actor which starts moving:
ChangePath( none...);
//If you want to let your character move when the other came up, then add this too:
EventEnable(events for moving character);

Now if there was no need to stop the player from moving the actor while that comes up, then just take out the Event Enable-disable out. That's about it... ;) :D Hope I could help!

Re: Start moving something else. stoping the main character

PostPosted: Fri Aug 15, 2008 11:52 pm
by BlarghNRawr
its easier to move the "spot" around if you use a filled region, or a wireframe region... at least i think so...

Re: Start moving something else. stoping the main character

PostPosted: Sat Aug 16, 2008 10:51 am
by Thanx
Well, ya a Wire-framed region is probably better... Also makes the spot a bit bigger, so you don't need to be that presice in hitting the spot...