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
S
1
G
1
Posts: 20
Reputation: 740

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! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
116
S
41
G
17
Posts: 2,204
Reputation: 19,545

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! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
116
S
41
G
17
Posts: 2,204
Reputation: 19,545


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 15 guests