Page 1 of 1

automovement,respawning,andfightback

PostPosted: Tue Jun 13, 2006 7:19 pm
by Zehper48
i am having trouble making a game it would help if i knew how to

1.make something respawn
2.make and enemy automaticaly move(like back and forth or in a circle)
3.and enemy fight back and make my health go down
if you could answer any of my questions i would be very happy!! :)

PostPosted: Tue Jun 13, 2006 7:30 pm
by Zehper48
It would be most helpful if you could give me step by step instructions and the code or something. :lol:

PostPosted: Tue Jun 13, 2006 8:34 pm
by Zehper48
i found out #1 but if you could answer the other ones it would help me so much

Re: automovement,respawning,andfightback

PostPosted: Tue Jun 13, 2006 9:35 pm
by CatT
Zehper48 wrote:i am having trouble making a game it would help if i knew how to

1.make something respawn
2.make and enemy automaticaly move(like back and forth or in a circle)
3.and enemy fight back and make my health go down
if you could answer any of my questions i would be very happy!! :)


I found something in the forums on #3 because I would like to know that too:

http://game-editor.com/forum/viewtopic. ... eter+metre

Look here too:

http://game-editor.com/forum/viewtopic. ... eter+metre

See if what's there helps you. I haven't had a chance to try them yet.

PostPosted: Wed Jun 14, 2006 7:53 pm
by duracel92
Making an enemy move can be done using a path. Create several of these and use the 'path finish' events. to make the actor follow a new path and change animation is possible.

The best thing to do, to make something move side to side is to create 2 paths, put a higher integer in 'frame' to make the path longer, and make the actor move swifter. Try to syncronise with the actors animation.

Then click actor control, add event>path finish>change path> path 1 to path 2.
then do add event>path finish 'path 1'>change path>path 2 to path 1.

if you want the animation to change do this:

add event>path finish 'path 1'>change animation 'left.bmp'
and the same for righ or up or down animation. but it will require more paths for that...

Ill let you experiment, ill upload this there image to show key parts.

Image

PostPosted: Wed Jun 14, 2006 8:13 pm
by Zehper48
i did that but my enemey didnt move when i clicked game mode he just stood ther

PostPosted: Fri Jun 16, 2006 2:50 pm
by duracel92
did you assign 1 path too the actor?

PostPosted: Fri Jun 16, 2006 3:19 pm
by Zehper48
yes

PostPosted: Fri Jun 16, 2006 7:47 pm
by duracel92
So if I say correctly, i said:

1. Make 2 paths.
2. on actor control make a new event; path finish (path 1)>change path (path 2)
3. make another event; path finish (path 2)>change path (path 1)
4. assign path 1 or 2 to the actor...

I don't really see the problem in this... I will try what I have said...

PostPosted: Fri Jun 16, 2006 7:51 pm
by duracel92
Hmm... what I said definately works for me.... Make sure you haven't clicked random path... W00T 100th post :P - sorry... It might be a bug, but I'm not sure....

PostPosted: Fri Jun 16, 2006 7:53 pm
by duracel92
Another thought is that you might want to put it into the activation region (little or big yellow box) that the player actor is in, so it definately should load.

PostPosted: Fri Jun 16, 2006 8:16 pm
by duracel92
Absolutely no idea... I got 250 fps when I tested it though :)

PostPosted: Fri Jun 16, 2006 10:18 pm
by Zehper48
Thank you sooooooo much it worked. :) i like it when people explain it step by step thank you.

PostPosted: Fri Jun 16, 2006 11:09 pm
by duracel92
oh.... :)