Game Development Community

Tutorial Bug

by Zachary Buckholz · in iTorque 2D · 02/25/2011 (9:57 pm) · 3 replies

Currently working thru the Rainy Day Tutorial
TorqueiTorque 2D 1.4documentationOfficial Documentation.html

The tutorial neglected to mention 'Edit level datablocks' which seems to be required to have the sprites show up when running the game. I got past this from knowledge of a previous tutorial I worked on.

But I am stuck on the 'behaviour' code. The instructions said to save the code to a file named 'MovementBehavior.cs'. The path mentioned in the tutorial didn't exist, my code base appears under 'C:Program FilesTorqueiTorque 2D 1.4MyProjectsRainyDayTutorialprojectFiles'.

Regardless, I saved the bahaviour code to a file named 'MovementBehavior.cs' in every sub-directory, and clicked 'Reload Project' after each save then looked for the new behaviour in the gui and it never appeared.

Can anyone provide the correct location where this .cs file should be saved? As I mentioned I saved it to each sub-directory hoping eventually I would find the correct location. There is no 'Behaviors' sub-directory as the tutorial mentions, I even created a new directory called 'behaviors' under 'C:Program FilesTorqueiTorque 2D 1.4MyProjectsRainyDayTutorialprojectFilesgame'. Still no luck.

Thanks

About the author

Linux admin currently on contract for large multi-national company that provides payment solutions for business's and individuals. Looking forward to mastering this iTorque 2D technology, and creating really cool games with my 10 year old son.


#1
02/26/2011 (1:20 am)
The preview docs included with 1.4.1 (check your account!) mention the level datablocks. That tutorial is for TGB, not iT2D. Mich is writing a new version for the final release.

Put your behaviours inside "game/scripts/behaviors/".
#2
02/27/2011 (9:48 pm)
Thanks I will try game/scripts/behaviors and report what happens
#3
02/27/2011 (9:50 pm)
Great, as soon as I created a folder behaviors under game/scripts, copied the file there and reloaded the project it worked.