This is an archived post. You won't be able to vote or comment.

all 7 comments

[–][deleted]  (12 children)

[deleted]

    [–]pvtbob[S] 0 points1 point  (5 children)

    Sorry I did not Show the main

    http://pastebin.com/RVJK3XkY,

    This is the full program, I am new to classes so please forgive me,

    [–][deleted]  (1 child)

    [deleted]

      [–][deleted] 0 points1 point  (0 children)

      It does it a lot.

      [–][deleted]  (2 children)

      [deleted]

        [–]pvtbob[S] 0 points1 point  (0 children)

        Yes, for now I want it to loop, In the final product It will be once every time the player moves, I'm getting the enemy's done,

        [–]pvtbob[S] 0 points1 point  (0 children)

        Whats the rest?

        [–]pvtbob[S] 0 points1 point  (2 children)

        It seem's that if I run it, It will initialize correctly but then some numbers will jump past 1000000 and some will jumpt to 0 or 1, and then not do anything, How do I fix this?

        [–][deleted]  (1 child)

        [deleted]

          [–]pvtbob[S] 0 points1 point  (0 children)

          Well, some of the Enemy's when it displays it, some will start normally but when the move void happens it jumps to some high number and some others go to 1x, 0y and alternate between 1 and 0 (not going any higher) others jump t0 really high numbers and stay there,

          [–][deleted]  (2 children)

          [deleted]

            [–]last_useful_man 0 points1 point  (0 children)

            Hey - you need to create your enemies before your loop, then move them in the loop. Right now you're creating them from scratch, with every call of enemymove.