Start moving something else. stoping the main character

Game Editor comments and discussion.

Start moving something else. stoping the main character

Postby firerfun » Fri Aug 15, 2008 10:10 am

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
firerfun
 
Posts: 14
Joined: Mon Nov 27, 2006 10:27 pm
Score: 0 Give a positive score

Re: Start moving something else. stoping the main character

Postby Thanx » Fri Aug 15, 2008 1:18 pm

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!
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score

Re: Start moving something else. stoping the main character

Postby BlarghNRawr » Fri Aug 15, 2008 11:52 pm

its easier to move the "spot" around if you use a filled region, or a wireframe region... at least i think so...
Download Game Music
current projects:
Bold! ?% Started mechanics
Unnamed puzzle game 60% --i need a name!--
User avatar
BlarghNRawr
 
Posts: 767
Joined: Wed Jun 25, 2008 12:36 am
Location: Not using G-E anymore. Now using Source SDK.
Score: 27 Give a positive score

Re: Start moving something else. stoping the main character

Postby Thanx » Sat Aug 16, 2008 10:51 am

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...
http://www.youtube.com/watch?v=XyXexDJBv58
http://www.youtube.com/watch?v=Be4__gww1xQ
These are me and playing the piano (second one with a friend/fellow student)
Hope you watch and enjoy!
User avatar
Thanx
 
Posts: 314
Joined: Sat Jan 26, 2008 10:07 pm
Location: Home sweet home! :)
Score: 24 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron