Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Problem with sprite engine. Not working right

  1. #11

    Problem with sprite engine. Not working right

    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&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  2. #12

    Problem with sprite engine. Not working right

    still , sprite 8 moves towards sprite 7 :shock:

  3. #13

    Problem with sprite engine. Not working right

    Code:
    if &#40;R5Direction='RIGHT'&#41;then 
      begin 
        X&#58;=x+Speed1*dx; 
        if &#40;X>GameAreaX2-Image.width&#41;then 
        begin
          r5direction&#58;='LEFT'; 
          exit; // <---------------------- I forgot this &#58;&#41;
        end;
      end;
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  4. #14

    Problem with sprite engine. Not working right

    seiferalmasy 0
    Huehnerschaender 1

    weldone dude Never wouldda got that, shall study it.

    Thanks

    what does exit do exactly?>

  5. #15

    Problem with sprite engine. Not working right

    I'm glad that I was able to help

    You're welcome...
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  6. #16

    Problem with sprite engine. Not working right

    Quote Originally Posted by seiferalmasy
    what does exit do exactly?
    Exit jumps out of the current procedure, while break jumps out of a current loop (e.g. for-loop).
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  7. #17

    Problem with sprite engine. Not working right

    cheers again dude

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •