Staredit Network > Forums > SC2 Assistance > Topic: Bricks
Bricks
Nov 13 2010, 7:07 pm
By: payne  

Nov 13 2010, 7:07 pm payne Post #1

:payne:

I'm trying to create a PvP Bricks game for the Arcade contest, but now I'm stuck on something pretty fundamental: are there any easy ways to detect the position of collision between two units? I have some solutions in mind, but they look pretty harsh and I'm sure there are better ways of doing it. :/



None.

Nov 13 2010, 7:14 pm Devourer Post #2

Hello

If object is moved via triggers you simply use 1(or more points) and move them to the position of where the brick will be after the move. Via a condition you check whether a unit is near the point (radius of 1 or w/e), if so you know that something is in the way.
That was my first idea.



Please report errors in the Staredit.Network forum.

Nov 13 2010, 7:37 pm Temp Post #3



If you want a challenge you can actually use the data editor to make a complete bricks game :P



None.

Nov 13 2010, 8:44 pm payne Post #4

:payne:

Quote from Temp
If you want a challenge you can actually use the data editor to make a complete bricks game :P
God, it'd take me years to figure out every time I'd have to do with the Data Editor for this. :><:



None.

Nov 13 2010, 8:50 pm NicholasBeige Post #5



(psst, Temp, he was too lazy to even work out how to rescale the Shape_Box actor, so I had to show him how)



None.

Nov 13 2010, 8:52 pm payne Post #6

:payne:

Quote from name:Cardinal
(psst, Temp, he was too lazy to even work out how to rescale the Shape_Box actor, so I had to show him how)
Hey! It was because I didn't know how. >:O



None.

Nov 16 2010, 8:40 pm payne Post #7

:payne:

I'm now trying to find a way to divide a Circle-shaped region into 4 quadrants (a pizza sliced in 4). Any ways I can do this? Looks like quite a difficulty task ;o



None.

Nov 16 2010, 9:01 pm DevliN Post #8

OVERWATCH STATUS GO

In the Region's properties, you can add shapes together to create that, sort of. The best I've been able to recreate is a square with a rounded "corner" buy attaching a 1x2 rectangle to a 2x1 rectangle, and then putting a 2x2 circle on top.



\:devlin\: Currently Working On: \:devlin\:
My Overwatch addiction.

Nov 16 2010, 10:27 pm payne Post #9

:payne:

I want to use Behaviors to detect the collision between units to improve responsiveness... the new problem is that the Search Area effect detect units only at their center and in my case, it's a stretched cube.
Are there any ways to set the unit's collision region to something rectangular via the Data Editor?

EDIT:
Quote from DevliN
In the Region's properties, you can add shapes together to create that, sort of. The best I've been able to recreate is a square with a rounded "corner" buy attaching a 1x2 rectangle to a 2x1 rectangle, and then putting a 2x2 circle on top.
Nearly it! I did a Circle region and created 2 'negative' rectangulars to crop it.
Repeat until you have your 4 quadrants. :awesome:

Post has been edited 1 time(s), last time on Nov 16 2010, 10:52 pm by payne.



None.

Nov 16 2010, 10:58 pm NicholasBeige Post #10



Pfft I did that 20 minutes ago :P... not my fault it takes time to make screenshots to send to you



None.

Nov 16 2010, 11:04 pm Temp Post #11



Also payne for future note you can do searches at multiple points along a unit by using a persistent effect and using periodic offsets.



None.

Nov 16 2010, 11:34 pm payne Post #12

:payne:

Quote from Temp
Also payne for future note you can do searches at multiple points along a unit by using a persistent effect and using periodic offsets.
/me has no idea how to work with that. :/



None.

Nov 17 2010, 12:53 am Temp Post #13



Check out the helion's weapon effects for an example.



None.

Nov 17 2010, 1:01 am Roy Post #14

An artist's depiction of an Extended Unit Death

Quote from payne
Nearly it! I did a Circle region and created 2 'negative' rectangulars to crop it.
Repeat until you have your 4 quadrants. :awesome:
If I recall correctly, negative regions do not work. I tried putting one inside a large square, but units inside the negated area were still considered inside of the region. Have you thoroughly tested this to be the exact effect you want?




Nov 17 2010, 1:36 am payne Post #15

:payne:

Quote from Roy
Quote from payne
Nearly it! I did a Circle region and created 2 'negative' rectangulars to crop it.
Repeat until you have your 4 quadrants. :awesome:
If I recall correctly, negative regions do not work. I tried putting one inside a large square, but units inside the negated area were still considered inside of the region. Have you thoroughly tested this to be the exact effect you want?
Oh shi-, no I haven't! :hurr:
Will try next time I map. For now, I'm leaving soon to meet some friends.

Quote from Temp
Check out the helion's weapon effects for an example.
Okay, thanks. :)



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
[2024-4-20. : 7:56 pm]
Oh_Man -- lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
Please log in to shout.


Members Online: Zycorax