Page 1 of 1

Scrolling image background is taking up too much processing?

Posted: Sat Apr 27, 2013 1:35 pm
by CoffeeCone
I am trying to make a simple scrolling game but the resource usage is so heavy. What am I doing wrong here?

Re: Scrolling image background is taking up too much process

Posted: Sat Apr 27, 2013 4:48 pm
by dave_probertGA6e24
A couple of bits:

Scrolling by 1 pixel is a VERY slow movement (1 pixel every 50 milliseconds = 32 seconds to scroll 640 pixels!!)

Also you need to learn "left" from "right" :) regarding the side you set.

Anyway - here is a modified version with a couple of ideas in the buttons...

Enjoy.

Dave

Re: Scrolling image background is taking up too much process

Posted: Sat Apr 27, 2013 5:06 pm
by jmburnod
Hi,
Sorry for the short post. I have to move.

Code: Select all

on closecard
stopPending startScrolling
end closecard


on stopPending pPending
   repeat for each line aLine in the pendingmessages
      if aLine contains pPending then
         cancel item 1 of aLine
      end if
   end repeat
end stopPending
Best regards
Jean-Marc