class type continually disappears.[solved but another question @ post#3]
by rennie moffat · in Torque Game Builder · 04/23/2010 (11:28 am) · 4 replies
Hi, I have an object which continually loses its class if I change levels (either in game, or loading manually in the editor.
This is very frustrating. Would anyone have insight into how this could happen? Is there a way ( and sorry for the newb) that I can declare an objects class with in a behavior?
This is very frustrating. Would anyone have insight into how this could happen? Is there a way ( and sorry for the newb) that I can declare an objects class with in a behavior?
About the author
My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.
#2
04/23/2010 (12:20 pm)
ok so I have kind of solved it however one thing does perplex me in that, for tests I am simply looping two levels, complete 1, go to 2, complete 2, go to one. Now my global gets passed from 1 to 2, but not 2 to 1. They are using identical behaviors so I am not sure what the dilly is. If anyone has a thought or insight I would like to hear it. Thanks.
#3
04/25/2010 (11:42 pm)
It sounds to me like you're initializing the global when level one finishes loading.
#4
04/26/2010 (6:04 am)
but it is the same code, on both, besides look there is nothing different about the code. I am a newb, but i would think that if the global was 38 and the end of either level it would be 38 for the other.
Torque Owner rennie moffat
Renman3000
The objects which lose their class are objects which simply act as walls(2 of them) between which a third object, the owner bounces between. If it bumps into the wallClass it switches directions back and forth infinitely. I know it doesn't really matter but this is really weird. Any reasoning? logic for this?