Reputation: 15
Ok, so I'm watching this tutorial: http://as3gametuts.com/2012/01/08/platformer-3/ and when
For some reason this code won't work:
xSpeed -= scrollY;
ySpeed -= scrollX;
back.x = scrollX;
back.y = scrollY;
And calls for
1120: Access of undefined property scrollX 1120: Access of undefined property scrollY
Upvotes: 0
Views: 114
Reputation: 1189
Have you added the vars scrollX and scrollY to your code? In the source they're declared right above xSpeed around line 16.
Upvotes: 1