Trouble With Platformer Enemy

For questions about using Classic.

Post » Sat Nov 26, 2011 7:14 pm

To put it simply, the enemy involved with this particular problem is supposed to be killed by having his head being jumped on. But every time I try to jump on his head, he just keeps on sliding past me. I'm unsure if the problem is collision mask related, or just the fact that he turns so fast when the player is in the opposite direction of him, but being able to kill him is nearly impossible.

Here's the .cap:

http://dl.dropbox.com/u/42313097/Boss%20Man%20V13.cap

Can anyone help?
B
16
S
2
G
1
Posts: 156
Reputation: 2,112

Post » Sat Nov 26, 2011 10:05 pm

Hi,

Movement and direction
ll_security: x greater than george.x -> set angle to 180
ll_security: x lower than george.x -> set angle to 0

Thats why you can't jump on him xD
He will go in the opposite direction as soon as he crossed the players X coordinate^^

maybe try

ll_security: x greater than george.x + 60 -> set angle to 180
ll_security: x lower than george.x - 60 -> set angle to 0

the higher you add/subtract, the more he will stay in a direction before he will run in the opposite direction^^
B
24
S
9
G
2
Posts: 294
Reputation: 3,160

Post » Sat Nov 26, 2011 10:39 pm

That does solve the issue of the enemy turning so fast, thanks.

Although I still can't land on his head (Therefore killing him) most of the time. I just keep sliding right off for some reason. My collision masks are basic boxes, so that shouldn't be the problem, should it?
B
16
S
2
G
1
Posts: 156
Reputation: 2,112

Post » Sun Nov 27, 2011 8:06 pm

1-uncheck "solid" in the hero attributes (it's for the environment, platform characters slide on collision with solid object)
2-set the enemies' hotspot in thecenter of the character (not in the center of the sprite)
3-in the "battle" event sheet, try removing the condition that theenemy.Y is greater than the hero bottom.It works better like that.

there are other problems in the way the enemies are made to move. But now you can jump on them sometimes
declan_gage2011-11-27 20:16:04
B
3
S
1
G
3
Posts: 45
Reputation: 1,140

Post » Sun Nov 27, 2011 11:06 pm

[QUOTE=declan_gage] 1-uncheck "solid" in the hero attributes (it's for the environment, platform characters slide on collision with solid object)
2-set the enemies' hotspot in thecenter of the character (not in the center of the sprite)
3-in the "battle" event sheet, try removing the condition that theenemy.Y is greater than the hero bottom.It works better like that.

there are other problems in the way the enemies are made to move. But now you can jump on them sometimes
[/QUOTE]

Your first suggestion worked perfectly, now it works every time!

I also followed the second suggestion too, but the third one would make it so that the enemy just gets killed on contact.

Thanks for the help, decian_gage.
B
16
S
2
G
1
Posts: 156
Reputation: 2,112


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest