I cant Kill a goomba D:

For questions about using Classic.

Post » Fri Jun 24, 2011 5:05 pm

Hallo! Im creating a plattaformer game like mario bros of nes, but i dont know how to kill a creature (goomba) with mario u.u
I know how to disappear the goomba when i touched but i want kill him when when stepped on goomba.

anyone know how I can do that?

Sorry if my english is so bad, im trying to learn the languaje c:
B
2
G
2
Posts: 2
Reputation: 579

Post » Fri Jun 24, 2011 6:31 pm

Check beginners tutorials first. :D
B
2
G
1
Posts: 20
Reputation: 590

Post » Fri Jun 24, 2011 7:22 pm

Add the "Destroy" action to the goomba. Or do you mean the death of mario?
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Fri Jun 24, 2011 8:07 pm

The problem is that if I add a collision check and mario hits the goomba from the side the goomba is destroyed (I want it to be destroyed only if Mario steps on it)
B
2
G
2
Posts: 2
Reputation: 579

Post » Fri Jun 24, 2011 8:11 pm

Ahh, in that case add a condition "Mario.Y > Goomba.Y + Goomba.Height/2" to the destroy condition, assuming the goomba's hotspot (chosen mid point of image) is at it's centre then it will only work when mario is landing from above the goomba's head. Otherwise hurt the player
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests