Game Development Community

Aquarium tutorial - my fish don't move

by Zachary Buckholz · in iTorque 2D · 02/22/2011 (9:45 pm) · 6 replies

I am going through the Aquarium tutorial using iTorque 2D and when it comes time to test some fish movement nothing happens.I took a screen shot of the level editor showing I have the settings correct, and my vim editor is open also showing the code.

Unfortunately I don't see a way to attach the screen shot here.

Anyone attempted to complete the fish tutorial and had success?

I got up to the part where you enable physics on one fish as a test.

--Update 2/23/2011 @9:26 PM

Michael enlightened me on how to attach a photo.
picasaweb.google.com/lh/photo/C0r1wUgRnkFSCJqRYaBPyg?feat=directlink

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/23/2011 (7:30 am)
Use the [.url=www.google.com]Screenshot[/url] (without the period in the first bracket statement) to post a link to the screenshot. Of course, use your own URL to the pic.
#2
02/23/2011 (7:36 am)
Also, do you get any errors or warning in the console log?
#3
02/23/2011 (8:22 pm)
Removing post
#4
02/23/2011 (8:29 pm)
Thanks Michael for pointing me to the console file. I was able to figure out part of my problem. I had two different directory structures for my Aquarium tutorial. One under MyDocuments and the other under MyProjects, I was editing the game.cs in one and launching my project from the other.



What's odd is that I can drag the static sprite into the scene and set its class to FishClass and enable Physics. And my static sprite will move. I deleted the animated sprite which was made from the static sprite CELL and re-added it to the scene, with still no movement.

I am still unable to get my fish moving, here is the console output I 'believe' points to the problem.



--------Exec()ing level game/data/levels/emptyLevel.t2d
Compiling C:/Program Files/Torque/iTorque 2D 1.4/MyProjects/Aquarium/projectFiles/game/data/levels/emptyLevel.t2d...
Namespace::unlinkClass - cannot unlink namespace parent linkage for FishClass for t2dStaticSprite.
Error: cannot change namespace parent linkage of FishClass from t2dStaticSprite to t2dAnimatedSprite.



I found another forum post that has some similarity to what I am experiencing, however I am working directly from the GarageGames tutorial. So I assume this has been tested and should work.
www.garagegames.com/community/forums/viewthread/71136
#5
02/23/2011 (11:19 pm)
You can't assign two different types of objects (static sprite and animated sprite) the same class. You could use an animatedFishClass for the animated ones for example.
#6
02/25/2011 (8:21 pm)
Correct I can not assign two different types of objects to the same class according to the other post. However what's confusing to a noob like me is that I was following the tutorial.