|
Posted By
|
Message
|
 Benny Lindberg
Registered 11/8/2010
Points 54
|
10th November, 2011 at 5:26:42 PM -
Hi there! I have a layer with the x-coefficient of 1.25, and a quick background objective that is the length 320 pixels, which is the window width. I tried setting the virtual width to several different values, but the object doesn't wrap around when it starts to leave on the left side or right side. I made sure that the "wrap around" was checked.
n/a
|
 Benny Lindberg
Registered 11/8/2010
Points 54
|
18th November, 2011 at 2:24:01 PM -
Noone's got any ideas on this? :/
n/a
|
 Windybeard Games
Registered 4/14/2005
Points 101
 
|
18th November, 2011 at 4:50:56 PM -
hmmm that is strange, perhaps wrap around doesnt funtion correctly due to the scrolling. What i would do is make a bigger background and then it will move around but not end on screen.
SWEEZY GUNNER! Coming soon.
http://www.create-games.com/project.asp?id=2205
https://www.facebook.com/SweezyGunner
|
 Benny Lindberg
Registered 11/8/2010
Points 54
|
18th November, 2011 at 5:45:52 PM -
You mean the scrolling backdrop should be larger than the window?
n/a
|
 Windybeard Games
Registered 4/14/2005
Points 101
 
|
18th November, 2011 at 11:37:38 PM -
Yeah, i believe you need to make the background 1.25 times the size of the screen to take into account the x co of 1.25. this way it will scroll without ending abruptly.
SWEEZY GUNNER! Coming soon.
http://www.create-games.com/project.asp?id=2205
https://www.facebook.com/SweezyGunner
|
 Benny Lindberg
Registered 11/8/2010
Points 54
|
19th November, 2011 at 11:58:43 AM -
Hm,no, that didn't solve it :/
n/a
|
 Zephni My other cars a Balrog
Registered 10/17/2007
Points 3919
 
|
21st November, 2011 at 7:44:47 AM -
Hmm, I havent tested but maybe the "wrap around" attribute applys to the entire frame size rather than the window size. So if your level is 2000 x 2000 px it would wrap that whole area rather than just your 320 x 240 px window?
dont make me divide by zero...
|
 nivram
Registered 7/20/2006
Points 111
|
21st November, 2011 at 9:54:28 AM -
Maybe set the virtual frame size to -1?
Marv
355 open source examples and games
http://www.castles-of-britain.com/mmf2examples.htm
|
 Benny Lindberg
Registered 11/8/2010
Points 54
|
21st November, 2011 at 11:08:47 AM -
virtual frame width is -1. I don't think the height ought to matter, since it's only scrolling sideways. Hm, so it has to be the size of the complete frame, eh? I'll try that!
n/a
|
 Benny Lindberg
Registered 11/8/2010
Points 54
|
21st November, 2011 at 5:52:35 PM -
Yeah, that seemed to do it. Thanks!
n/a
|
 nivram
Registered 7/20/2006
Points 111
|
22nd November, 2011 at 4:34:15 PM -
Glad to help Benny and glad that solved your problem.
Marv
355 open source examples and games
http://www.castles-of-britain.com/mmf2examples.htm
|
|
|
|