General Category > Starward Rogue Mods & Modding

Rotation question

(1/5) > >>

Misery:
Okay, so, simple question:   The "rotates with firing entity" tag.   ....what in the heck does this actually DO?

I've been experimenting with it for like 25 minutes, and as best I can tell, it does literally nothing at all. 

This is in relation to shots that are spawned by other shots, naturally, as opposed to shots that are spawned by ships.

ptarth:
To my knowledge rotate_with_firing_entity requires the move_with_firing_entity tag.
move_with_firing_entity causes the shot to move with whatever fires it.
The combination of the two tags causes the shot to move with whatever fired it and to keep at the same angle relative to the heading of the firing entity. It might be the case that the shots do rotate even without move_with, but since the shots are round it might be hard to see.

In a bullet pattern you can control the movement of the shots much more precisely.

Ayrix:
you have set offset_is_relative_to_parent_bullet_instead_of_firing_entity="true" right?
and there is no "rotates with firing entity" tag

you mean

--- Quote ---moves_with_firing_entity (bool, optional)
the shot maintains its position relative to the firing entity, as that entity moves around. Primarily useful for quasi-melee weapons
rotates_around_firing_entity (bool, optional)
the shot rotates with the firing entity, combined with the previous flag it updates its position to also stay constant relative to the firing ship's central axis (so if it's to the upper right, and you do a 180, it will be to the lower left on the screen)
--- End quote ---

correct, it's how you code the melee weapons.

Misery:

--- Quote from: ptarth on February 26, 2016, 05:52:40 am ---To my knowledge rotate_with_firing_entity requires the move_with_firing_entity tag.
move_with_firing_entity causes the shot to move with whatever fires it.
The combination of the two tags causes the shot to move with whatever fired it and to keep at the same angle relative to the heading of the firing entity. It might be the case that the shots do rotate even without move_with, but since the shots are round it might be hard to see.

In a bullet pattern you can control the movement of the shots much more precisely.

--- End quote ---

Yeah, I'd done all that already.  It still didn't appear to be doing anything of use.  I read the XML's explanation of the thing too, but... that didn't really help much.  It only really points out that it needs to be with the moves with entity thing.

I ended up just saying "Well this isnt accomplishing anything" and using other things instead.  Things that did stuff.  And thus, stuff was done.

Hearteater:
The biggest problem with it is that ships actually turn instantly, so when using rotate_around_firing_entity, if you've set any speed to the visual rotation of the ship, the bullets will snap instantly and the break the visual effect.

Navigation

[0] Message Index

[#] Next page

Go to full version