Shoot an object backwards?
Another case of something I can't do in my Star Control clone - I'd like to be able to just fire an object in the opposite direction as my ship is heading. But the Shoot Object option for selecting a direction curiously disables the 1+1 box (to calculate a direction). This seems like another curious omission. If this was available, it would be easy to have shots that can come out at any relative degree (get current direction +16 for backwards, +8 for right, +24 for left, etc.).
Even better, if any of these calculations let us set a min/max range (or if the direction selector had an option to make it relative to the ship's current heading), you could do cool spreads of shots...
As it is, I can only shoot forward or directly at an enemy or in some global direction. I can't shoot in a relative direction or in the *general* direction of a target...
<img src="/center/images/graemlins/frown.gif" alt="" />
Shoot an object backwards?
Another case of something I can't do in my Star Control clone - I'd like to be able to just fire an object in the opposite direction as my ship is heading. But the Shoot Object option for selecting a direction curiously disables the 1+1 box (to calculate a direction). This seems like another curious omission. If this was available, it would be easy to have shots that can come out at any relative degree (get current direction +16 for backwards, +8 for right, +24 for left, etc.).
Even better, if any of these calculations let us set a min/max range (or if the direction selector had an option to make it relative to the ship's current heading), you could do cool spreads of shots...
As it is, I can only shoot forward or directly at an enemy or in some global direction. I can't shoot in a relative direction or in the *general* direction of a target...
<img src="/center/images/graemlins/frown.gif" alt="" />
Re: Shoot an object backwards?
The shoot object command is very convenient for very basic shooting, but VERY limited <img src="/center/images/graemlins/frown.gif" alt="" /> The solution is to use create object and make the object use bouncing ball movement and set its direction in the same even just after creating it. For your ship or whatever to shoot behind itself I believe it would be set direction to direction the ship is facing +16.... please someone correct me if I'm wrong.
Re: Shoot an object backwards?
The shoot object command is very convenient for very basic shooting, but VERY limited <img src="/center/images/graemlins/frown.gif" alt="" /> The solution is to use create object and make the object use bouncing ball movement and set its direction in the same even just after creating it. For your ship or whatever to shoot behind itself I believe it would be set direction to direction the ship is facing +16.... please someone correct me if I'm wrong.
Re: Shoot an object backwards?
[]The shoot object command is very convenient for very basic shooting, but VERY limited <img src="/center/images/graemlins/frown.gif" alt="" /> The solution is to use create object and make the object use bouncing ball movement and set its direction in the same even just after creating it. For your ship or whatever to shoot behind itself I believe it would be set direction to direction the ship is facing +16.... please someone correct me if I'm wrong. [/]
hehe, this is *exactly* the solution I tried, and I was pleased when it seemed to work... until I fired rapid-fire and there were multiple copies of my projectile object in the world. When that happens, the change direction action occurs on *every copy*, not just the one that was spawned in that particular event (I guess it doesn't assume I was referring to the one that just spawned)... so close, but yet so far... :/
Re: Shoot an object backwards?
[]The shoot object command is very convenient for very basic shooting, but VERY limited <img src="/center/images/graemlins/frown.gif" alt="" /> The solution is to use create object and make the object use bouncing ball movement and set its direction in the same even just after creating it. For your ship or whatever to shoot behind itself I believe it would be set direction to direction the ship is facing +16.... please someone correct me if I'm wrong. [/]
hehe, this is *exactly* the solution I tried, and I was pleased when it seemed to work... until I fired rapid-fire and there were multiple copies of my projectile object in the world. When that happens, the change direction action occurs on *every copy*, not just the one that was spawned in that particular event (I guess it doesn't assume I was referring to the one that just spawned)... so close, but yet so far... :/
Re: Shoot an object backwards?
Remove the current direction-changing action and put this instead:
When flag 0 ("bullet") is off --> change direction to ship direction +16 , set flag 0 on
That way, the direction of each bullet will only be changed once.
Re: Shoot an object backwards?
Remove the current direction-changing action and put this instead:
When flag 0 ("bullet") is off --> change direction to ship direction +16 , set flag 0 on
That way, the direction of each bullet will only be changed once.
Re: Shoot an object backwards?
[]Remove the current direction-changing action and put this instead:
When flag 0 ("bullet") is off --> change direction to ship direction +16 , set flag 0 on
That way, the direction of each bullet will only be changed once. [/]
Yeah, good idea. That'll do it. I'll probably do something like that, I guess... I still wish there was more control over what direction something goes in when created/shot (specifically, relative to the direction of the shooter).
Thanks!
Re: Shoot an object backwards?
[]Remove the current direction-changing action and put this instead:
When flag 0 ("bullet") is off --> change direction to ship direction +16 , set flag 0 on
That way, the direction of each bullet will only be changed once. [/]
Yeah, good idea. That'll do it. I'll probably do something like that, I guess... I still wish there was more control over what direction something goes in when created/shot (specifically, relative to the direction of the shooter).
Thanks!