741
Coding / Re: Probs with hook shot
« on: September 08, 2009, 01:46:49 am »
obj.hookshot creation code
now the obj.hookhandle
Quote
pulling=0
switch (global.facing){
case 'D': direction=270;y+=10;speed=5; break;
case 'U': direction=90;y-=10;speed=5; break;
case 'R': direction=0;x+=10;speed=5; break;
case 'L': direction=180;x-=10;speed=5; break;
}
direction=direction+180
depth=-y
alarm[0]=30
now the obj.hookhandle
Quote
switch (global.facing){
case 'D': direction=180;y+=10; break;
case 'U': direction=0;y-=10; break;
case 'R': direction=270;x+=10;y+=4; break;
case 'L': direction=90;x-=10;y+=4; break;
}
depth=-y
instance_create(x,y,objHookshot)