I was hoping to have something a little more constructive accomplished between yesterday and today, but I was having some issues trying to code my robot to work properly. You can see here in my testing area, which is a simple scene in which I test stuff out before making it into a prefab to place into game scenes later on. You may recall me mentioning that I should have been able to modify the machine gun sentry script to work for my robot. Well yes and no. Seems I can get it to partially work the way I want. I have his animations all set up as:
Shoot: is supposed to then play the animation in which the robot torso spins 360 degrees 1 turn but is a looped animation.
Deactivate: Is supposed to play an animation where the chest doors close as the robot guns retract back inside of his chest area.
Sounds simple enough right? Until you get to start trying to code it that is, still working on it.
The other issue that might kill this great idea with the robot, is that he might be too high poly for this type of attack scenario. In making him in Max 8 I was trying very hard to keep him as low to medium poly as I could without sacrificing too much detail in the robot. But when he animates in Unity 3d's editor the whole scene slows to a crawl, so I might in the long run just have him as a nice sand box decoration :( (sadness) because I was really liking the idea of placing him right by the bridge crossing the sand castle mote. I suppose I can rework him in Max 8 and try and bring his poly count down a lot more. That is indeed if that is the issue as it could be the machine gun script rotating him as well as his rotation animation playing at the same time.
I tried making my own script similar to the "Jack in a Box" script but got really weird results like the animations would play making the robot move way below his desired location, so I've no idea what was going on there as it works for the "Jack in a Box." ??
- Aware
- Shoot
- Deactivate
Shoot: is supposed to then play the animation in which the robot torso spins 360 degrees 1 turn but is a looped animation.
Deactivate: Is supposed to play an animation where the chest doors close as the robot guns retract back inside of his chest area.
Sounds simple enough right? Until you get to start trying to code it that is, still working on it.
The other issue that might kill this great idea with the robot, is that he might be too high poly for this type of attack scenario. In making him in Max 8 I was trying very hard to keep him as low to medium poly as I could without sacrificing too much detail in the robot. But when he animates in Unity 3d's editor the whole scene slows to a crawl, so I might in the long run just have him as a nice sand box decoration :( (sadness) because I was really liking the idea of placing him right by the bridge crossing the sand castle mote. I suppose I can rework him in Max 8 and try and bring his poly count down a lot more. That is indeed if that is the issue as it could be the machine gun script rotating him as well as his rotation animation playing at the same time.
I tried making my own script similar to the "Jack in a Box" script but got really weird results like the animations would play making the robot move way below his desired location, so I've no idea what was going on there as it works for the "Jack in a Box." ??

No comments:
Post a Comment