ID:170204
 
I'm attempting to make a basic mechwarrior engine sort of thing and i was just wondering if anyoen could give me some pointers for a few things i cant work out:

1. I have a mob (the legs of the mech) and an overlay for that mob (the torso). I want to know how to make that overlay rotate with the use of two verbs (ie rotate left, rotate right).

2. How to make the user able to fire in the direciton of the overlay.


I realise that this could be incredibly hard (according to my programming logic anyway) so any help whatsoever would be useful.

Thanks in advance

- GunRunner
You'd have to give the mech a variable that is a reference to their upper torso bit, and a variable that is the direction the upper torso is facing. When you rotate it, remove the ovject from your overlays, use the turn() proc on it, put it back on the overlays and adjust the direction it's facing. (1 is north, 3 is east, 2 is north-east, all the way to 8, north west. See how it works?).
In response to Jp
I would actually suggest just making two movable atoms & reference them together. It's much easier to manipulate an atom then an atom's overlays & its icons.
In response to Teh Governator
can you give me an example of what you mean?
In response to GunRunner
Here's the pickle isn't it. Before everyone wanted to give you answers. Seldom do people want to make examples. Which can be quite annoying.
In response to Draxxis
I know what you mean but hey thats the way it goes i suppose.
In response to Teh Governator
And if you make them both mobs, one player could drive the legs while another shot and rotated the torso.

~X