"RTS" type "Wall placement"?

Get help using Construct 2

Post » Sun Feb 15, 2015 8:56 pm

https://www.youtube.com/watch?v=Ys6yUepi664

How to I make a 2D wall placement system? I am currently in the progress of an RTS game and I struggle finding a solution for this problem.

I want it to work pretty similar to the one in this video except less "Smoothly" It is gonna be a 32x grids.

I highly appreciate some help on this one! :)

;)

Edit1: Also i want it to be from this view perspective:

Image
B
9
S
2
Posts: 41
Reputation: 1,756

Post » Sun Feb 15, 2015 10:39 pm

Are your walls only going to be horizontal or vertical; no diagonals?
B
11
S
4
Posts: 152
Reputation: 1,236

Post » Sun Feb 15, 2015 10:48 pm

Unnatural20 wrote:Are your walls only going to be horizontal or vertical; no diagonals?



Yes, only horizontal or vertical. Not diagonals (Might put ut in if it is easier)
B
9
S
2
Posts: 41
Reputation: 1,756

Post » Mon Feb 16, 2015 12:25 am

Well, it's not ideal, but this might help your on your way.

Edit 1: Among the problems it has-
Some weird behaviors based on the fact that while the cursor is at 15, 15 on a tile, your click-and-drag will be at an odd offset.
Nothing prevents walls from overlapping.
No special handling for walls intersecting
Not using different image for vertical vs horizontal walls once built.
You do not have the required permissions to view the files attached to this post.
B
11
S
4
Posts: 152
Reputation: 1,236

Post » Tue Feb 17, 2015 6:09 pm

Unnatural20 wrote:Well, it's not ideal, but this might help your on your way.

Edit 1: Among the problems it has-
Some weird behaviors based on the fact that while the cursor is at 15, 15 on a tile, your click-and-drag will be at an odd offset.
Nothing prevents walls from overlapping.
No special handling for walls intersecting
Not using different image for vertical vs horizontal walls once built.




Thanks! I am going to look into this! Also i think i have som solutions for these problems. With the overlapping problem, isn't it possible to make the z order based on X & Y coordinate?
B
9
S
2
Posts: 41
Reputation: 1,756


Return to How do I....?

Who is online

Users browsing this forum: Boxels, lamar, qroft, Selimovich and 9 guests