TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Old Questions (from 1.x/2.x)
→
scrolling background iOS games
Pages:
1
scrolling background iOS games
tiaf
Posts: 7
March 25, 2012, 03:17:57 pm
hi, i'm having a problem , i trying to make a endless game for iOS , and i have many frames for the background, but when i try to make it work, the background still allays on the first frame.
i try 2.0 and it still same problem, please need help
thanks
Dizko
Posts: 451
March 25, 2012, 05:24:15 pm
If you're using the built in background scrolling functionality, that doesn't work in iOS and it's a known issue.
zerosimms
Posts: 710
March 28, 2012, 12:38:52 am
There is a download you can get from forge, just search "parallax scrolling", it's the one who's icon is a mountain.
On another note, repeated backgrounds do not work in IOS and parallax scrolling is a bit rubbish without repeating the background image. If anyone knows a way to repeat the background I'd be grateful to know.
Would pasting and lining up multiple background images take up to many resources?
FranAlt
Posts: 169
December 15, 2012, 01:34:23 pm
Hi! I just developed a solution and works perfect!
For example:
-My background is 2200x682
-When I create it (I place it manually in the scene) I set it to Always Active and with a certain X Speed (negative)
-Then I calculate what would its X be for it when the background will "end", that is to say 480px left on screen (iOS screen). My background is 2200px (1100px) 1100px-480px= 620px, so when X of Self= -620 create "Actor Type" (new the same actor) at 480.
So, when there is x480 left at screen automatically a "new background" will generate at x480
If you dont understand it this way just let me know that I will upload some images
Good luck!
Swipe
- FREE
Cloud Run
- FREE
iOS
Android
Android
alexrush
Posts: 19
December 15, 2012, 03:49:25 pm
Looks like it would work, but wouldn't having an always active background that large hugely affect performance?
FranAlt
Posts: 169
December 20, 2012, 02:16:45 pm
No, I'll have to check but I think Im still getting 60fps on an iPad. Its necessary to have it always active as the next background will be created outside the screen, otherwise it wont work. Another thing to take into consideration is to make it a "Sensor" or "NoCollision" object. You may disable some physics to gain performance.
Good luck!
Swipe
- FREE
Cloud Run
- FREE
iOS
Android
Android
Caroline
Posts: 2
January 03, 2013, 09:10:36 am
Please could you upload pictures, I'm struggling to understand what you mean and I'm having this exact problem.
Thank you in advance
skippertech
Posts: 256
January 31, 2013, 02:02:04 pm
I am basically trying to pull of the same thing...
Pages:
1