jitter problem

Discussion and feedback on Construct 2

Post » Thu Mar 08, 2012 6:49 pm

I'm making a top-down shooter with Rexu's LOS code running for the enemies and the player, so a crosshairs object disappears if the player can't actually 'see' what they're aiming at.

I thought it was working perfectly until I linked the player angle to the crosshairs (so that if the angle of the crosshairs is +- 45 degrees from the current angle, the player turns to face the crosshairs), what seems to happen is when the line-of-sight code runs, the position of the crosshairs goes completely random at every tick and as a result whenever you get close to a wall or aim behind it you end up spinning around randomly as well.

What's supposed to happen is, the opacity of the crosshairs just turns off or on depending on whether they have line of sight.

I don't even know what to try here because I can't even figure out what would be causing it.

http://http://dl.dropbox.com/u/349494/c2project0/index.html
B
10
S
5
G
1
Posts: 37
Reputation: 1,631

Post » Sat Mar 24, 2012 3:58 am

I will ask mu friends about this one... you might want to consider starting your project over. Since you have all of your assets now, it shouldn't take too long, especially with C2s amazing developing speed. Plus, it will most likely get rid of any bugs in your program. Just go slowly when designing a video game. That way you don't add any unwanted behaviors, or mess up an event.
B
20
S
4
G
4
Posts: 129
Reputation: 5,535

Post » Sat Mar 24, 2012 4:01 am

Before taking StephenC's suggestion to heart, if you want someone to help you should post a capx for us to look at first. That way we can get a better grasp on what the problem is.
B
58
S
20
G
7
Posts: 305
Reputation: 8,804

Post » Sat Mar 24, 2012 6:36 pm

sorry... I added the link to the capx in the html file itself:
http://dl.dropbox.com/u/349494/c2project0/project.capx
B
10
S
5
G
1
Posts: 37
Reputation: 1,631


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 19 guests