When I tried me game 2 things occur when I start to roll:
1. After rolling it resets number of rupees and
2.Instead of actually rolling, I just roll in place rolls in place and
3. When I roll all instances including monsters freeze in place without moving freely and smoothly afterwards they move. I tried many things to patch up the code but the other method makes me teleport within the rooms which is not what I want.
For objLink in order to perform this roll we press C:
instance_create(objLink.x,objLink.y,obj_Link_rolling)
instance_destroy()
Now the step event within the obj_Link_rolling is
global.Linkx=x
global.Linky=y
if global.facing="left"{
sprite_index=spr_linkrollleft
x -=4}
if global.facing="up"{
sprite_index=spr_linkrollup
y-=4}
if global.facing="right"{
sprite_index=spr_linkrollright
x+=4}
if global.facing="down"{
sprite_index=spr_linkrolldown
y+=4}
After the event is finish the end animation for the code is:
instance_create(x,y,objLink)
instance_destroy()
The errors I get was from editing the end animation code which was unexpected once game finish loading.