Platformer tutorial problem; bad character on the html page
by cedric pastof · in Torque Game Builder · 06/13/2010 (12:25 pm) · 5 replies
Hello,
I am actually trying to create a little platformer, so I am following the tutorials pages.
(http://tdn.garagegames.com/wiki/TGB/CustomPlatformer)
But I have an error when the game launch (scripting error locate in my actorbehavior).
And I understand why. On the tutorial page (adress wrote at the top of this thread) there are some mistake with some characters.
Apparently, the ' character is not good. I have some ’ “ and –
Something wrong with this page.
For the note it's not a problem, but for the code it's a real problem. For the function ActorBehavior::getCollisionInfo I have this:
%this.owner.collisionPoint_X = getWord(%minBottom, 0) + %testPoint_a*%diffBottom_X
+ %dir*getWord(%this.owner.groundNormal, 1)*0.5;
%this.owner.collisionPoint_Y = getWord(%minBottom, 1) + %testPoint_a*%diffBottom_Y – 0.5;
But I really don't understand what's mean – at the end of the 3rd line.
I tried to open this page on different computer (macs, windows...) but this page allways display this like that... So I always have a problem at this part of the code.
Can someone say to me what's wrong with this page?
And can someone say to me by what I am supposed to replace this –?
Thanks for your help
I am actually trying to create a little platformer, so I am following the tutorials pages.
(http://tdn.garagegames.com/wiki/TGB/CustomPlatformer)
But I have an error when the game launch (scripting error locate in my actorbehavior).
And I understand why. On the tutorial page (adress wrote at the top of this thread) there are some mistake with some characters.
Apparently, the ' character is not good. I have some ’ “ and –
Something wrong with this page.
For the note it's not a problem, but for the code it's a real problem. For the function ActorBehavior::getCollisionInfo I have this:
%this.owner.collisionPoint_X = getWord(%minBottom, 0) + %testPoint_a*%diffBottom_X
+ %dir*getWord(%this.owner.groundNormal, 1)*0.5;
%this.owner.collisionPoint_Y = getWord(%minBottom, 1) + %testPoint_a*%diffBottom_Y – 0.5;
But I really don't understand what's mean – at the end of the 3rd line.
I tried to open this page on different computer (macs, windows...) but this page allways display this like that... So I always have a problem at this part of the code.
Can someone say to me what's wrong with this page?
And can someone say to me by what I am supposed to replace this –?
Thanks for your help
#2
I allready done this tutorial.
I found it in the same list.
What's the difference between this tutorials?
I really want to understand the custom, because I prefere this one for my game.
Thanks to answer
06/13/2010 (1:44 pm)
Hello,I allready done this tutorial.
I found it in the same list.
What's the difference between this tutorials?
I really want to understand the custom, because I prefere this one for my game.
Thanks to answer
#3
06/16/2010 (6:45 pm)
No one knows what's I am supposed to write for this – ?
#4
But it's weird that Michael's link and the one you provide don't have the same code. I'd use Michael's, as I think it has the "preferred" movement code. (I can't say this with certainty, as I've not done either.)
06/16/2010 (10:37 pm)
At a quick guess, I'd say it's a multiply.But it's weird that Michael's link and the one you provide don't have the same code. I'd use Michael's, as I think it has the "preferred" movement code. (I can't say this with certainty, as I've not done either.)
#5
That tutorial actually holds some insight into the method that I use for the PlatformerKit. It is really rough, not very efficient and has quite a few bugs. It really isn't any better than the tried-and-true method given in the link Michael provided.
06/16/2010 (11:18 pm)
I wrote that old "custom" platformer tutorial. I would take William's advice and stick to the link that Michael suggested.That tutorial actually holds some insight into the method that I use for the PlatformerKit. It is really rough, not very efficient and has quite a few bugs. It really isn't any better than the tried-and-true method given in the link Michael provided.
Employee Michael Perry
ZombieShortbus