hammer gravity is not applied after .ysp is set
Posted: 24 Jul 2017, 23:31
I found a little bug with the hammer projectiles.
basically the hammer npc is not being effected by gravity after .ysp is set
I have tested it on the fire flower though and it works with the fireball
here is my code
EDIT: ok so it was because I wasn't running it in parallel execution but it seems that mario can still effect the hammers angle if he holds up.
this is weird because the fireball and iceball are fine and doesn't let mario modify the throw angle.
basically the hammer npc is not being effected by gravity after .ysp is set
I have tested it on the fire flower though and it works with the fireball
here is my code
Code: Select all
'Script No.2 Name:Fireball
with npc(sysval(Param1))
'Fireball
if .ivala = 0 then
.ysp = 8
.ivala = 1
end if
end with
Code: Select all
'Script No.2 Name:Hammer
with npc(sysval(Param1))
'Hammer
if .ivala = 0 then
.ysp = -8
.ivala = 1
end if
end with
EDIT: ok so it was because I wasn't running it in parallel execution but it seems that mario can still effect the hammers angle if he holds up.
this is weird because the fireball and iceball are fine and doesn't let mario modify the throw angle.