Game Development Community

Scroller Problems

by Ken McHugh · in TGB Platformer Kit · 03/06/2011 (10:36 am) · 5 replies

I am using the Platformer Kit for 1.7.5, (not pro) on Mac. I went through the entire demo tutorial and everything was going great until I added the scrolling background at the very end. Adding the scroll_mountainsImageMap seems to break my water scrollers that I already had implemented and working fine before. Right after the mountains are added and I test the game, the water looks like a block of white that just blinks, and after that, the water is permenantly like that, even if I delete the mountains.

Has this happened to anybody else?

#1
03/06/2011 (12:36 pm)
What layers are you putting everything at? Are you using any custom images which don't have power-of-two width and height?
#2
03/09/2011 (8:47 am)
I've just been doing the layers that it says to do in the demo tutorial. No custom images yet, I've just been using the supplied ones.

I ended up getting TGB 1.7.4 and that seems to have fixed it. I wonder why I only had these problems in 1.7.5.
#3
04/11/2011 (12:05 pm)
I had the same problems myself.
TGE 1.7.5 Pro on Windows.
PFK 1-2-0
Scrollers can be implemented in a alternative way through script and I think thats what the demo is using.
Check this out.
Parallax Layers (Alternative Method)
I havn't done it yet myself, but will do when I get to the Parallax in my game.
#4
04/28/2011 (9:51 am)
I followed about a third of the tutorials and thought I had many of the WYSIWYG functions figured out and those basic scripts. Then I was just playing around with the Platformer demo making edits and tinkering to see what would break it.

I changed the water and mountain graphics, no issue, then I changed the scroll speeds on the water using Edit, and didn't update the scripts. Now they are invisible and/or just flash in the background. I assume it's because there is something in a script somewhere that is at odds with the new settings, but didn't have time to check (due to work). Just curious of that's the case so when I sit down tonight I can look around.

Thanks!
#5
05/22/2011 (10:41 am)
So I just gave up on this and replaced the behavior with the "Parallax Object" behavior from the samples. Here's a link: tdn.garagegames.com/wiki/TGB/Behaviors

Seems to have worked!