direction detection (goomba behaviour_

Get help using Construct 2

Post » Tue May 14, 2013 1:42 am

so, i'm making a game called "Super luigi" (super mario, but with luigi), and i'm having trouble with the enemies. i need to make it so that when i jump on the goombas, they die, but if i run at them from the sides, i die. i wrote up some scripts, but the siderun script always activates. any tips?
B
7
S
2
Posts: 48
Reputation: 888

Post » Tue May 14, 2013 4:02 am

Add a condition that requires you to be moving down (Y speed positive, but depends what movement behavior you're using)
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Wed May 15, 2013 1:47 am

i'm using the platform behaviour, and i used the event:

if player collides with goomba |       set goomba animation to "die"
and                            |       wait 3 seconds
player is falling              |       destroy goomba


i also made an event for getting hurt.

if player collides with goomba|
and
player is on floor                   (death, destroy, and reload actions)
B
7
S
2
Posts: 48
Reputation: 888

Post » Sun May 19, 2013 3:09 am

bump.

I've tried the Y axis thing, but it still doesn't work.

here's my capx. feel free to play with it and whatnot, if anyone can fix my problem and re-upload the capx for me, it would be much appreciated :D

https://docs.google.com/file/d/0B905DbBSgkoqeEFRVXFOZnZxbW8/edit?usp=sharing
B
7
S
2
Posts: 48
Reputation: 888


Return to How do I....?

Who is online

Users browsing this forum: emoticon, KeetonCat, makkancs and 27 guests