Users browsing this thread: 5 Guest(s)
Super Mario Bros 2012 Doomsday
#4
(07-16-2012, 11:44 PM)AuraLancer Wrote:
(07-16-2012, 10:51 PM)BuzzNBen Wrote: [Image: smb2012__doomsday_wallpaper_by_gardevoir...4qjoyc.png]

Oh man, this picture. They sure are happy for doomsday and being on fire, lol.

On a more serious note, it looks like you guys have Wart checking for the shell collision based on the specific sprite of him with his mouth open, am I right? It shouldn't be too hard to add the condition of being in contact with the mouth area.

Say you were using sprite index, in Wart's collision code with the shell you could put:

Code:
if sprite_index = spr_wart_attack
and other.x >= x + 2
and other.x < x + 8
and other.y >= y + 2
and other.y < y + 6
     {
          hitpoints -= 1
     }
else exit

This of course is assuming Wart and the shell's sprite origins are 0,0 and estimating Wart's mouth position, as well as variable names, but it will prevent him from taking damage by walking over the stationary shell with his mouth open. It also doesn't include deletion code for the shell, just an example for you.

Thanks alot! I was spending a while trying to figure out how to make Wart close his mouth after being attacked with a shell.
Thanked by:


Messages In This Thread
Super Mario Bros 2012 Doomsday - by BuzzNBen - 07-16-2012, 10:51 PM
RE: Super Mario Bros 2012 Doomsday - by BuzzNBen - 07-17-2012, 11:21 AM
RE: Super Mario Bros 2012 Doomsday - by DioShiba - 07-17-2012, 01:33 PM
RE: Super Mario Bros 2012 Doomsday - by Ton - 07-17-2012, 03:14 PM
RE: Super Mario Bros 2012 Doomsday - by BuzzNBen - 07-18-2012, 11:49 AM
RE: Super Mario Bros 2012 Doomsday - by Star - 07-17-2012, 09:14 PM
RE: Super Mario Bros 2012 Doomsday - by Virt - 07-18-2012, 11:54 AM
RE: Super Mario Bros 2012 Doomsday - by BuzzNBen - 07-18-2012, 12:30 PM
RE: Super Mario Bros 2012 Doomsday - by Ton - 07-18-2012, 12:38 PM
RE: Super Mario Bros 2012 Doomsday - by Kriven - 07-18-2012, 01:18 PM
RE: Super Mario Bros 2012 Doomsday - by BuzzNBen - 07-18-2012, 06:57 PM
RE: Super Mario Bros 2012 Doomsday - by BuzzNBen - 07-19-2012, 12:56 AM
RE: Super Mario Bros 2012 Doomsday - by Kriven - 07-18-2012, 11:36 PM
RE: Super Mario Bros 2012 Doomsday - by Star - 07-19-2012, 01:41 AM
RE: Super Mario Bros 2012 Doomsday - by Gors - 07-22-2012, 09:42 AM
RE: Super Mario Bros 2012 Doomsday - by Iceman404 - 07-22-2012, 12:27 PM
RE: Super Mario Bros 2012 Doomsday - by BuzzNBen - 07-22-2012, 02:31 PM
RE: Super Mario Bros 2012 Doomsday - by Previous - 07-22-2012, 02:32 PM

Forum Jump: