PSK Parallax Scroller not working
by Greg C · in TGB Platformer Kit · 08/31/2011 (5:48 pm) · 3 replies
I am attempting to do some of the things in the starter kit demo level tutorial. When I attempt to add a parallax scroller with the mentioned instructions, the mountains do not move when the camera moves. I am using TGB 1.7.5 pro.
The demo level tut can be found here: http://tdn.garagegames.com/wiki/TGB/PlatformerStarterKit/Demo_Level
Thank you.
The demo level tut can be found here: http://tdn.garagegames.com/wiki/TGB/PlatformerStarterKit/Demo_Level
Thank you.
Torque Owner Keith Goddard
I put a breakpoint in the ParallaxBehavior.cs file, in the onUpdate() function. Right at the beginning of the function, it checks to see if you have a valid ParallaxScrollTarget object with this code:
if ( !$ParallaxScrollTarget )
{
return;
}
It never makes it past this check, so the code which actually does the scrolling etc. is never called. Any suggestions on how to fix this?