PLATFORMER: Enemy control with platform behavior

Get help using Construct 2

Post » Sun Nov 06, 2011 12:01 pm

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
B
43
S
9
G
5
Posts: 231
Reputation: 7,291

Post » Sun Nov 06, 2011 6:35 pm

This is great. Thank you!
B
14
S
2
G
6
Posts: 110
Reputation: 3,849

Post » Mon Nov 07, 2011 4:44 am

Thank you for share it, it will be useful
B
15
S
4
G
6
Posts: 9
Reputation: 3,944

Post » Thu Nov 10, 2011 9:06 pm

Just what I needed, thanks Miu3. :)Nickydude2011-11-10 21:06:26
B
72
S
25
G
9
Posts: 382
Reputation: 10,649

Post » Thu Nov 10, 2011 9:48 pm

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,
B
72
S
25
G
9
Posts: 382
Reputation: 10,649

Post » Fri Nov 11, 2011 8:01 pm

[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.
B
43
S
9
G
5
Posts: 231
Reputation: 7,291

Post » Fri Nov 11, 2011 10:22 pm

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
B
4
G
1
Posts: 15
Reputation: 580

Post » Fri Nov 11, 2011 10:35 pm

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
B
40
S
14
G
11
Posts: 243
Reputation: 9,432

Post » Sat Nov 12, 2011 1:08 pm

[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
B
43
S
9
G
5
Posts: 231
Reputation: 7,291

Post » Wed Apr 18, 2012 1:00 pm

interesting stuff.thnx 4 sharing!
B
17
S
3
G
5
Posts: 71
Reputation: 4,401

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests