Page 1 of 1

A mazing grace!

PostPosted: Tue Jan 17, 2006 10:54 am
by deano
Hi there,

Am new to all this and i'm just tryin to create a simple game to test out the software. There's this frog that has to find his lady love through a maze using arrow keys. Along the way he encounters crocodiles. My question is how do i make the crocs move slowly within fixed range. ex: The croc only moves between 2 fixed co-ordinates along x-axis in the maze in a ping pong manner.

Am trying if-then statements and path animation but am getting very confused. Also can we set it up so that when the croc collides with the maze walls he reverses his direction. (maybe thats a more intelligent idea?) Thanks in advance.

Cheers,

Deano.

PostPosted: Wed Jan 18, 2006 2:59 am
by Diana Kennedy
Hi deao,

I recommend you to first try out all tutorials. Several features are shown there and you can pick up a lot of ideas. When you don't find what you are looking for, you can ask here a more precise question that can be answered in a concrete way. Right now your questons are very global and it would take to post here entire tutorials. So please study the embedded tutorials and then come back with specific questions.

PostPosted: Wed Jan 18, 2006 7:29 am
by deano
Hi Diana,

Thanks for replying. Yeah have been going through the tutes for a while now, but i think its some scripting that needs to be done. Im cool with working the code out. Its just that I wanted to know what the best idea would be to execute the problem. Maybe if i could word it differently.

"move an object back and forth continuously along the X-axis between two fixed points"

Is there a specific command that I must study in order to achieve this? I used to be able to do this in Adobe's After Effects very easily but am not sure how to script this in GE.

"Is it also possible in GE that the object moves back and forth continuously on collisions with the grid walls?"

I hope i've worded it better this time. Just need to be pointed in the right direction with respect to a few C++ commands and should be cool after that. Thanks once again.

Cheers,

Deano

PostPosted: Wed Jan 18, 2006 9:04 am
by Diana Kennedy
Hi Deano,

Well, Englisgh is not my native tongie, so I might not have undertstood all in every subtility. Also, I am a newbie and have no scripting notrions:

deano wrote:
"move an object back and forth continuously along the X-axis between two fixed points"


Well, there are probably a lot of better ways, especially when using scripts, but that is how I would approach the problem:

make 2 paths: One from the left to the right and one from right to left: In the actor that has to move ad to ebvent "path finish" "change path" the other apth and vioce-versa.
You can also place 2 wire actors for the pionts and use collision event. Here you will probably need to do a script to change moving direction.

Diana

PostPosted: Thu Jan 19, 2006 8:39 pm
by deano
Heya thanks Diana, will check out path finish & using 2 paths. Might help me. Take care. Deano. :D