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.
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.
If you want a challenge you can actually use the data editor to make a complete bricks game
None.
If you want a challenge you can actually use the data editor to make a complete bricks game
God, it'd take me years to figure out every time I'd have to do with the Data Editor for this.
None.
(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.
(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.
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.
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.
Currently Working On: My Overwatch addiction.
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:
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.
Post has been edited 1 time(s), last time on Nov 16 2010, 10:52 pm by payne.
None.
Pfft I did that 20 minutes ago
... not my fault it takes time to make screenshots to send to you
None.
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.
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.
Check out the helion's weapon effects for an example.
None.
An artist's depiction of an Extended Unit Death
Nearly it! I did a Circle region and created 2 'negative' rectangulars to crop it.
Repeat until you have your 4 quadrants.
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?
Nearly it! I did a Circle region and created 2 'negative' rectangulars to crop it.
Repeat until you have your 4 quadrants.
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!
Will try next time I map. For now, I'm leaving soon to meet some friends.
Check out the helion's weapon effects for an example.
Okay, thanks.
None.