基本上我已经能够设置一些代码,当我不在floor对象上时,会将我的精灵设置为跳跃精灵,但由于精灵比其他精灵小,当它与地板接触时会卡住,我只能通过跳跃来脱离。 我是否需要设置一些碰撞盒?
if place_meeting(x, y+2, floor_obj)
{
sprite_index = gumpy_idle
}
else
sprite_index = gumpy_jump
基本上我已经能够设置一些代码,当我不在floor对象上时,会将我的精灵设置为跳跃精灵,但由于精灵比其他精灵小,当它与地板接触时会卡住,我只能通过跳跃来脱离。 我是否需要设置一些碰撞盒?
if place_meeting(x, y+2, floor_obj)
{
sprite_index = gumpy_idle
}
else
sprite_index = gumpy_jump
评论 (0)