A long time ago I started a project that has for goal to remake the game Moonbase Commander. So far, it was quite hard. But I really want to do it.
My problem is, I made "complicated" stuff via triggers that should actually be Data for a much more fluid gameplay as probably less buggy. Now that I want to continue this map... I just don't know where to start or how to do anything as it is slightly to complex to figure out because I don't know by heart many of the "possibilities". So I come here to ask for some help to show me a possible way to do what I want.
So first of all, here is a video that shows the game in general.
And here is the specefic part I want to recreate:
And here is what I've done so far:
It is "working" but seriously the triggers are getting complex for no reasons at all. All the parabol movement is a formula that constantly change the unit heigh as it moves toward the point. And the connect path behavior (parent/child) is applied once everything is on the ground.
So... I'd like to change all that stuff to Data because I'm sure it would be more efficient. Also, it would allows me to be able to shoot multiple missile at once, what is impossible right now, it has to wait until the missile has landed.
But, I have a few main problems with the Data version of this...
First, when I try to create the link with a create unit behavior that repeats, it will not create the units at a constant distance, but at a constant rate. Meaning, the more the missile is rising or lowering, the more the links are close, the more the missile is in the air and travels more distance in less time, the more the gap between links are big. I want this to be like in my trigger version where it is at a constant distance.
Second, I want the link to "fall" from the missile. This can be easy to do with Missile movers or maybe even behavior, but I don't know what field(s) would make it. And my comp is quite slow for testing map so I don't want to take hours and hours to find one field that does everything...Hopefully someone already know how to do this.
Thirth, the link parent child behavior cannot be applied the same way as I did it for trigger at all... You can't track missiles with triggers. Right now, all the link units are added to a variable in the spawned order to be able to apply correctly the parent child. I have no idea how to do so with data because you can't track the spawning and make the previous link be parent of the new link and the new be the child of the previous...
On a even more complex subject, I don't want links to be able to cross themself and make like X. My only guess is a search when the link is created to know if the is a "recent link" and another when landing if the place is already occupied by an "old link". If it's occupied I want the main missile to stop moving, and the links to start dieing in the same way as I did with the trigger version.
And last complex thing is the landing. I don't want the unit or missile or whatever used, get higher when passing over a cliff and lower when moving down a cliff. I want them to keep following the parabol arc, and if the reach the ground earlier or later, keep moving or stop.
Example of what I don't want to happend:
Once I find a way to make the link work using data, the rest is pretty simple copy paste. But it's not gonna be easy. I would be really grateful to anyone helping me.
N.B. I've tried the Data before trying to make it via triggers, but... I could not get what I wanted except...stuff like this (I was trying to understand missile movers):
Hi there,
A long time ago I started a project that has for goal to remake the game Moonbase Commander. So far, it was quite hard. But I really want to do it.
My problem is, I made "complicated" stuff via triggers that should actually be Data for a much more fluid gameplay as probably less buggy. Now that I want to continue this map... I just don't know where to start or how to do anything as it is slightly to complex to figure out because I don't know by heart many of the "possibilities". So I come here to ask for some help to show me a possible way to do what I want.
So first of all, here is a video that shows the game in general.
And here is the specefic part I want to recreate:
And here is what I've done so far:
It is "working" but seriously the triggers are getting complex for no reasons at all. All the parabol movement is a formula that constantly change the unit heigh as it moves toward the point. And the connect path behavior (parent/child) is applied once everything is on the ground.
So... I'd like to change all that stuff to Data because I'm sure it would be more efficient. Also, it would allows me to be able to shoot multiple missile at once, what is impossible right now, it has to wait until the missile has landed.
But, I have a few main problems with the Data version of this...
On a even more complex subject, I don't want links to be able to cross themself and make like X. My only guess is a search when the link is created to know if the is a "recent link" and another when landing if the place is already occupied by an "old link". If it's occupied I want the main missile to stop moving, and the links to start dieing in the same way as I did with the trigger version.
And last complex thing is the landing. I don't want the unit or missile or whatever used, get higher when passing over a cliff and lower when moving down a cliff. I want them to keep following the parabol arc, and if the reach the ground earlier or later, keep moving or stop.
Example of what I don't want to happend:
Once I find a way to make the link work using data, the rest is pretty simple copy paste. But it's not gonna be easy. I would be really grateful to anyone helping me.
N.B. I've tried the Data before trying to make it via triggers, but... I could not get what I wanted except...stuff like this (I was trying to understand missile movers):
Working on projects: