Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Creating a shoot-'em-up style UMS for SC:
Creating a shoot-'em-up style UMS for SC:
Mar 13 2010, 2:16 pm
By: Aristocrat  

Mar 13 2010, 2:16 pm Aristocrat Post #1



Essentially, I have a 20 x 256 map and the player is to control a terran wraith and kill enemy air units with generated "missiles". See Raiden X for one such example.

(Since SC unit acceleration sucks and I can't implement WASD movement without shrinking the map to 20x12, the control is based on the mouse. Sorry!)

So far, I had no problems with the enemy generation, powerup system, respawning, kill tracking, and all the other essential features, EXCEPT the problem of bullet collision detection. I can think of no conceivable method to generate a steam of "bullets" that will kill air enemies on contact, and the workaround of generating a constant stream of scourge is too ugly. In case someone else knows of a workaround to this, please tell me if it's possible to do so with non-unique units. Thanks!



None.

Mar 13 2010, 2:44 pm lil-Inferno Post #2

Just here for the pie

Cycle through all enemy units, giving them to one player, centering a location on the unit for the other player, detecting if a bullet is in that location (killing the unit if it is and if not then moving the cycle on). Repeat these triggers for as many times as there will be enemies in the playing field so that it runs in one trigger cycle. When the original player controls no units, give all of them back.




Mar 13 2010, 3:41 pm ImagoDeo Post #3



You're still gonna have to use some unit for the bullets, but Inferno's solution should fix the problem. The only thing that may bother you is that you have to have enough cycle repeats in a single trigger cycle - as many as there are units in the gameplay area. Depending on how many you have, that could run up to a couple thousand triggers. MacroTriggers can help with that.



None.

Mar 13 2010, 3:51 pm Gigins Post #4



Make a walkable terrain and use Hero lings instead of scourges. Lings are smaller and faster.



None.

Mar 13 2010, 3:53 pm ImagoDeo Post #5



Quote from Gigins
Make a walkable terrain and use Hero lings instead of scourges. Lings are smaller and faster.

Problem with that is that you actually have collision boxes then. The ling may interfere with movement order triggers/etc.



None.

Mar 13 2010, 6:51 pm Aristocrat Post #6



Quote from Gigins
Make a walkable terrain and use Hero lings instead of scourges. Lings are smaller and faster.

My original workaround was to a-move scourge to the end of the map to simulate "missiles". The bullet unit choice is trivial with trigger cycling.



None.

Mar 13 2010, 7:06 pm Cinolt Post #7



BTW, if you really wanted to, it's actually possible to implement WASD movement on a 20x192 with a 4px hybrid grid/unit coordinate detection. If done right you could have the same acceleration as if using the mouse.



None.

Mar 13 2010, 7:13 pm FlashBeer Post #8



You can use zerling sprites, then just recycle them when they are suppose to disappear.



None.

Mar 13 2010, 7:33 pm NudeRaider Post #9

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

What is your actual problem? You want some graphical effect representing bullets but scourges are too big and slow?

Then you could use something like in xYoshix's Fallen Memories. He uses half visible observers to simulate rain drops in the forest region.
Or if you want real units get interceptors, they are the fastest and smallest unit there is.




Mar 13 2010, 8:00 pm Aristocrat Post #10



Quote from NudeRaider
What is your actual problem? You want some graphical effect representing bullets but scourges are too big and slow?

Then you could use something like in xYoshix's Fallen Memories. He uses half visible observers to simulate rain drops in the forest region.
Or if you want real units get interceptors, they are the fastest and smallest unit there is.

Before I knew how to do collision detection the only way I could make bullets work was to a-move scourge (which self destruct). Understandably not the best solution. I have solved that already though, so I guess the only thing left is implementing WASD.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:05 am]
O)FaRTy1billion[MM] -- the setting exists, it's just hidden in a weird place
[04:04 am]
O)FaRTy1billion[MM] -- instead change "Microtile Overlay" to "Impassable"
[04:04 am]
O)FaRTy1billion[MM] -- er, wait, idk why i was looking for height
[04:03 am]
O)FaRTy1billion[MM] -- below the minimap should be a thing that says "Overlay Settings" with a little + button in the corner, press the + to expand it, uncheck Use Defaults, then change "Tile Overlay" to "Height"
[03:57 am]
Sylph-Of-Space -- Unless I'm dum (possible)
[03:57 am]
Sylph-Of-Space -- It would be so so so nice if SCMDraft had some kind of dedicated "walkability" view for the tilesets.
[03:53 am]
Sylph-Of-Space -- :'( dont cry for me cat-gentina
[09:18 pm]
Ultraviolet -- 🔪🐈
[2024-5-19. : 12:34 pm]
NudeRaider -- curiosity kills the cat!
[2024-5-19. : 6:18 am]
Sylph-Of-Space -- No complaints here, i'm just curious!
Please log in to shout.


Members Online: Dem0n