A mazing grace!

Non-platform specific questions.

A mazing grace!

Postby deano » Tue Jan 17, 2006 10:54 am

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.
deano
 
Posts: 3
Joined: Tue Aug 16, 2005 6:43 pm
Location: India
Score: 0 Give a positive score

Postby Diana Kennedy » Wed Jan 18, 2006 2:59 am

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.
User avatar
Diana Kennedy
 
Posts: 257
Joined: Wed Dec 07, 2005 12:34 am
Location: France, where Presidents who got shot in Texas do exile ;-)
Score: 0 Give a positive score

Postby deano » Wed Jan 18, 2006 7:29 am

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
deano
 
Posts: 3
Joined: Tue Aug 16, 2005 6:43 pm
Location: India
Score: 0 Give a positive score

Postby Diana Kennedy » Wed Jan 18, 2006 9:04 am

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
User avatar
Diana Kennedy
 
Posts: 257
Joined: Wed Dec 07, 2005 12:34 am
Location: France, where Presidents who got shot in Texas do exile ;-)
Score: 0 Give a positive score

Postby deano » Thu Jan 19, 2006 8:39 pm

Heya thanks Diana, will check out path finish & using 2 paths. Might help me. Take care. Deano. :D
deano
 
Posts: 3
Joined: Tue Aug 16, 2005 6:43 pm
Location: India
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest