Page 1 of 2

PLATFORMER: Enemy control with platform behavior

PostPosted: Sun Nov 06, 2011 12:01 pm
by Miu3
Few days ago I made some examples that control the enemy with bullet behavior.
Today I used the platform behavior that automaticaly controls the enemy with events to make an example.
I learned that the main plus in using the platform behavior rather than bullet behavior is better control of a enemy with gravity who can move on solid objects and simulate movements like jump.

Sudgestions and examples with other ideas for this topic are welcome!



Example contains:
-Basic description in eventsheet
-Enemy with platform behavior is controled in eventsheet
-Enemy being turned left and right by overlaping just one sprite
-Enemy jump simulation to reach higher places

File: http://dl.dropbox.com/u/5214903/GM/EnemyPlatformer.capxMiu32011-11-06 12:02:30

Re: PLATFORMER: Enemy control with platform behavior

PostPosted: Sun Nov 06, 2011 6:35 pm
by TastyBytes
This is great. Thank you!

Re: PLATFORMER: Enemy control with platform behavior

PostPosted: Mon Nov 07, 2011 4:44 am
by diascarlosryal
Thank you for share it, it will be useful

Re: PLATFORMER: Enemy control with platform behavior

PostPosted: Thu Nov 10, 2011 9:06 pm
by Nickydude
Just what I needed, thanks Miu3. :)Nickydude2011-11-10 21:06:26

Re: PLATFORMER: Enemy control with platform behavior

PostPosted: Thu Nov 10, 2011 9:48 pm
by Nickydude
I'm having a bit of trouble with this, I want the object that the enemy hits to turn around ("item" in your example) to be solid but the enemy doesn't turn if it's solid,

Re: PLATFORMER: Enemy control with platform behavior

PostPosted: Fri Nov 11, 2011 8:01 pm
by Miu3
[QUOTE=Nickydude] I'm having a bit of trouble with this, I want the object that the enemy hits to turn around ("item" in your example) to be solid but the enemy doesn't turn if it's solid,[/QUOTE]

As i know, you cant really do collissions nor overlaps with solid objects. But you can place the sprite on the position where you want your character do the actions.

Re: PLATFORMER: Enemy control with platform behavior

PostPosted: Fri Nov 11, 2011 10:22 pm
by steveg
I've looked at several sample capxs and can't seem to get the behavior I want out of my enemy. I just want him/her/it to patrol back and forth in a particular area. I set up some sprites to act as collision points to make them turn, but it just doesn't seem to be doing what I want.

Anyone? Thanks!
http://dl.dropbox.com/u/6990704/test8.capx

Re: PLATFORMER: Enemy control with platform behavior

PostPosted: Fri Nov 11, 2011 10:35 pm
by tonycrew
I cheated on my enemies in space fantasy, i had some walk back and forth along the floor in a space game, i just at start made them walk so far using move to, then started a timer at a certain time they turn, and so on.
Basicaly It just loops.

tonycrew2011-11-11 22:37:46

Re: PLATFORMER: Enemy control with platform behavior

PostPosted: Sat Nov 12, 2011 1:08 pm
by Miu3
[QUOTE=steveg] I've looked at several sample capxs and can't seem to get the behavior I want out of my enemy. I just want him/her/it to patrol back and forth in a particular area. I set up some sprites to act as collision points to make them turn, but it just doesn't seem to be doing what I want.

Anyone? Thanks!
http://dl.dropbox.com/u/6990704/test8.capx[/QUOTE]

Heres a fixed version with some explanation after hours of testing

http://dl.dropbox.com/u/5214903/GM/test8fixed.zip

My made examples are not perfect. They are just one of many ways how to make things but i hope this solves your problem

Re: PLATFORMER: Enemy control with platform behavior

PostPosted: Wed Apr 18, 2012 1:00 pm
by dformer
interesting stuff.thnx 4 sharing!