Yes, I see
Change it to this... then it should work.
Code:if (R5Direction='RIGHT')then begin X:=x+Speed1*dx; if (X>GameAreaX2-Image.width)then r5direction:='LEFT'; end;
Yes, I see
Change it to this... then it should work.
Code:if (R5Direction='RIGHT')then begin X:=x+Speed1*dx; if (X>GameAreaX2-Image.width)then r5direction:='LEFT'; end;
<a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>
still , sprite 8 moves towards sprite 7 :shock:
Code:if (R5Direction='RIGHT')then begin X:=x+Speed1*dx; if (X>GameAreaX2-Image.width)then begin r5direction:='LEFT'; exit; // <---------------------- I forgot this :) end; end;
<a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>
seiferalmasy 0
Huehnerschaender 1
weldone dude Never wouldda got that, shall study it.
Thanks
what does exit do exactly?>
I'm glad that I was able to help
You're welcome...
<a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>
Exit jumps out of the current procedure, while break jumps out of a current loop (e.g. for-loop).Originally Posted by seiferalmasy
<a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>
cheers again dude
Bookmarks