Isometric Shooting

Get help using Construct 2

Post » Fri Nov 09, 2012 6:06 pm

I recently started to work with isometrics in construct 2 and I was wondering if theres a way to shoot 4-way in isometrics without using the mouse?

Such as the character faces a specific way and then you press space bar the bullet shoots at the same angle the player is facing.

I did try the bullet set angle of motion but im not quite sure how to make it work the way I want it to.

Can someone look over my file and give me a hand with what I'm trying to do?

The angles are already in the movement. So for example when you press left, character moves left at 212 degrees, but at the same time I want to set the the bullet to move at 212 degrees when fired.

I guess the peseudo code would look like this:
-when left key is clicked
-set angle of bullet 212 degrees
-when space bar is click, bullet moves at 212 degrees

Here's a link to the folder of my file:
https://www.dropbox.com/s/9egf5m97oxz4oo9/isotest.7z

I'm not quite sure how to upload a capx file, but if someone could share that info with me then I could change the link if it makes it easier for people to look at
B
18
S
4
G
3
Posts: 436
Reputation: 4,801

Post » Fri Nov 09, 2012 6:55 pm

Rex has a few plugs for working with iso movement:
http://www.scirra.com/forum/demo-of-slg-plugins-package_topic50640_post321105.html#321105

Also, I don't recommend bullet type collisions for iso. The angles just don't work out very well.
A percentage would be a much better way to go imo.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Fri Nov 09, 2012 7:21 pm

[QUOTE=newt]
Also, I don't recommend bullet type collisions for iso. The angles just don't work out very well.
A percentage would be a much better way to go imo.[/QUOTE]

oh I see, i might change to mouse aim then, but ill continue to see if theres a way to achieve this form of iso shooting. I'll look into the plugins but I don't think they'll help me achieve what im doing.
Also could you explain what you meant by percentage?
B
18
S
4
G
3
Posts: 436
Reputation: 4,801

Post » Fri Nov 09, 2012 7:33 pm

Basically its like a dice roll with the change that the bullet will hit.
Its not like you can actually see bullets anyways.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Fri Nov 09, 2012 10:45 pm

[QUOTE=newt] Basically its like a dice roll with the change that the bullet will hit.
Its not like you can actually see bullets anyways.[/QUOTE]


Its true you cant see bullets but I wanted to add a trail effect with the bullet since its a game, and games arent really real and those arent the exact sprites i plan to use for the game.

But anyways thanks for the idea, but its not quite what I was looking for
B
18
S
4
G
3
Posts: 436
Reputation: 4,801


Return to How do I....?

Who is online

Users browsing this forum: imnotspecial, tomi71, totoe, Yahoo [Bot] and 15 guests