[RESOLVED] Help with the platformer tutorial
by David Downer · in Torque Game Builder · 05/07/2012 (3:16 pm) · 6 replies
I apologize for the double post, didn't realize until afterwards that I posted this in "General Discussion" by accident. If an administrator would be so kind as to delete that post, I would be appreciative.
I'm working my way through the Ninja Platformer tutorial at the moment and have found another section that is broken/outdated and I can't figure it out. I am at the point of dealing with scrolling by locking the camera, and the tutorial states to use the code:
%force = 20;
sceneWindow2D.mount($pGuy, "0 0", %force, true);
This doesn't work - and looking into the scripting reference, I find a different version of this command:
t2dSceneWindow.mount
which I've also tried with no results. Has anyone figured out the correct way to handle this and would you be so kind as to share?
Thank you.
I'm working my way through the Ninja Platformer tutorial at the moment and have found another section that is broken/outdated and I can't figure it out. I am at the point of dealing with scrolling by locking the camera, and the tutorial states to use the code:
%force = 20;
sceneWindow2D.mount($pGuy, "0 0", %force, true);
This doesn't work - and looking into the scripting reference, I find a different version of this command:
t2dSceneWindow.mount
which I've also tried with no results. Has anyone figured out the correct way to handle this and would you be so kind as to share?
Thank you.
#2
Thank you.
05/08/2012 (3:36 am)
Thanks for the feedback. I know $pGuy is valid because my move functions (using that object) are working properly. I will dig into the console to check for other errors.Thank you.
#3
05/08/2012 (4:35 am)
(title edited - realized it sounded kind of rude which wasn't my intention)
#4
05/08/2012 (9:01 am)
When I went through that tutorial I'm fairly sure that section of code worked perfectly. However, I am at a different computer and in a different town so I am unable to double check right now.
#5
I really need to get Torsion as soon as I have the funds - editing in notepad makes bugs nearly impossible to see and squish.
05/08/2012 (9:34 am)
Thanks to both of you. I changed the .mount command back to the original in the tutorial and found a parsing error in my code once I opened the console. I really need to get Torsion as soon as I have the funds - editing in notepad makes bugs nearly impossible to see and squish.
#6
TGB's version is also very handy when you need to output variables during execution. You can simply use echo to display any vars you want or alter behavior during runtime.
05/09/2012 (10:17 pm)
Hitting ~ for console is very handy. Hitting ~ during runtime or using Torsion both benefit greatly.TGB's version is also very handy when you need to output variables during execution. You can simply use echo to display any vars you want or alter behavior during runtime.
Employee Michael Perry
ZombieShortbus