Scrolling image background is taking up too much processing?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 64
- Joined: Fri Apr 26, 2013 8:38 am
Scrolling image background is taking up too much processing?
I am trying to make a simple scrolling game but the resource usage is so heavy. What am I doing wrong here?
- Attachments
-
- traveltime.livecode.zip
- (241.95 KiB) Downloaded 184 times
Learning LiveCode, one step at a time.
-
- Livecode Opensource Backer
- Posts: 328
- Joined: Mon Dec 05, 2011 5:34 pm
- Contact:
Re: Scrolling image background is taking up too much process
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
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"

Anyway - here is a modified version with a couple of ideas in the buttons...
Enjoy.
Dave
- Attachments
-
- traveltime_davemod.livecode.zip
- (242.28 KiB) Downloaded 233 times
Coding in the Sun - So much Fun.
Visit http://electronic-apps.info for released App information.
Visit http://electronic-apps.info for released App information.
Re: Scrolling image background is taking up too much process
Hi,
Sorry for the short post. I have to move.
Best regards
Jean-Marc
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
Jean-Marc
https://alternatic.ch