help me out please!
by Jesse Goldan · in Game Design and Creative Issues · 08/05/2009 (6:10 pm) · 5 replies
If someone could tell me what I am doing wrong?
I scripted a projectile to shoot from my object and it does except it makes my object shift from left to right every time I shoot using the space bar.
Is there some special coding or something to keep the ship steady when firing the projectile?
Thanks for any help!
I scripted a projectile to shoot from my object and it does except it makes my object shift from left to right every time I shoot using the space bar.
Is there some special coding or something to keep the ship steady when firing the projectile?
Thanks for any help!
#2
08/05/2009 (8:16 pm)
Do you even have a license to an engine? (can't tell if you don't or if it's the site acting funky)
#3
08/06/2009 (11:14 am)
I am using TGB 2d software demo. No engine like TGE or advanced. I am not an industry pro or something guys. Used the preset behavior mods for my projectile. Still making the object shooting them jump around from side to side?!? I will try to check the code in notepad or something maybe (10,0) or something like that is off.
#4
Ok, now that we have that out of the way. I do remember hitting this problem before myself, but it's been a few years since I had to deal with it. I seem to remember it had something to do with the projectile colliding with the object firing it.
08/06/2009 (11:26 am)
Whoa, do not use notepad. You run the risk, albeit most of the time a small one, of introducing binary garbage to the file. It's best to use one of the available TorqueScript IDE's, Torsion or Codeweaver. Both are excellent, for a third option I suggest Notepad++ which is my preference for editing xml, html, etc and for when I want to take a look at only a file or two without waiting for an IDE to load up.Ok, now that we have that out of the way. I do remember hitting this problem before myself, but it's been a few years since I had to deal with it. I seem to remember it had something to do with the projectile colliding with the object firing it.
#5
08/06/2009 (11:52 am)
Cool, thank you Scott I appreciate the help. I will look into that, does sound like a strong possibility.
Associate David Montgomery-Blake
David MontgomeryBlake
Also, could you post your code so that we can see what is happening when you are triggering the projectile?