Hmmm... Are you sure you can't use step next and cycling? I guess it gets rid of directions and other properties, but it would work.
Hmmm... Are you sure you can't use step next and cycling? I guess it gets rid of directions and other properties, but it would work.
Avatar: Just who the SPAAAACE do you think I am?
Y'know thats a great idea or just LA_CHARGEING because I think that is the only time Link would be attacking and walking at the same time.wouldn't it be better for it to have a value that was LA_ATTACKING&WALKING or something?
Also a suggestion:
Although I don't see the Floor command anymore, is it phased out?Code:intead of: if(delay1>=0 && delay1<=10){Screen->DrawTile(2, x1, y1, tile, 1, 1, cset, 1, 0, 0, 0, 0, true, 128);} if(delay1>10 && delay1<=20){Screen->DrawTile(2, x1, y1, tile+1, 1, 1, cset, 1, 0, 0, 0, 0, true, 128);} if(delay1>20 && delay1<=30){Screen->DrawTile(2, x1, y1, tile+2, 1, 1, cset, 1, 0, 0, 0, 0, true, 128);} if(delay1>30 && delay1<=40){Screen->DrawTile(2, x1, y1, tile+3, 1, 1, cset, 1, 0, 0, 0, 0, true, 128);} if(delay1>40 && delay1<=50){Screen->DrawTile(2, x1, y1, tile+4, 1, 1, cset, 1, 0, 0, 0, 0, true, 128);} How about: if(delay1<50){Screen->DrawTile(2, x1, y1, tile+Floor(delay/10), 1, 1, cset, 1, 0, 0, 0, 0, true, 128);} if(delay1 >= 50){delay1 = 0; switch1 = 0; switch1_2 = 0;} Save ya a few lines of code
And btw what prog did you use to record zc in the video?
oh dear, have you just removed the need for that long, convoluted pseudo-animation that I made up?
Can you explain how it works please?
And I used Cam Studio, stick it in google. The quality's awful on my pc though, as you can see...
D'oh I was looking in ZScript.txt although I figured Floor still worked because my scripts still work right.It's in std.zh, is it not?
Well just a simple shortcut really, the thing is, you are checking what delay is, then setting the drawn tile according to the value of delay, and since delay is checked for in equal incriments you only have to use one statement to change the tile depending on the value of delay (gee I hope that discription helped and did not make your head hurt >_< )have you just removed the need for that long, convoluted pseudo-animation that I made up?
if(delay1>=0 && delay1<=10) (if delay is between 1 and 10 then draw tile)
if(delay1>10 && delay1<=20) (if delay is between 11 and 20 then draw tile+1)
etc..
tile+Floor(delay/10) simply will add 1 to tile for every 10 of delay, Floor just rids you of unwanted decimal places.
Ah, I'll look into using that later, but I'll stick with my method just for a bit now I think. Thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)