Buggy Performance

Get help using Construct 2

Post » Sun May 20, 2012 5:01 am

I'm quite new to Construct 2 and am having multiple issues with my game that appear to be buggy behavior, but more likely are the result of my lack of understanding. It is a fairly simple game with a single sprite attached to a bullet spritebox which is controlled by the direction keys. Here are the issues:

1. Although my 'ship' has an initial speed of 50 it just sits there for about 10 seconds before moving. Seems like a performance issue but I can't imagine that is the problem.

2. I'm using a HUD as a debugger. The ship's angle of direction is 0 but it is moving to the right. Is that the expected behavior? I thought 0-degrees was up (north).

3. In general there seems to be a long delay between keystrokes and when the sprite responds.

Here is my capx: http://dl.dropbox.com/u/80427523/Battleship2.capx

Any suggestions would be greatly appreciated.



B
4
S
2
Posts: 5
Reputation: 898

Post » Sun May 20, 2012 6:20 am

Your ship was scrolling till it reached the end of the layer then so it started to "move". Just delete the "Scroll to" behavior from shipbox so it can move all over the screen.

0 degree = right
90 degree = up
180 degree = left
270 degree = downnanuk2012-05-20 06:21:57
B
7
Posts: 10
Reputation: 666

Post » Sun May 20, 2012 6:35 am

Thanks Nanuk. Clearly I would have seen that if I had a background image.

Fast response too. You're awesome.
B
4
S
2
Posts: 5
Reputation: 898

Post » Sun May 20, 2012 6:38 am

Anytime and have fun developing fun games =D
B
7
Posts: 10
Reputation: 666

Post » Sun May 20, 2012 12:22 pm

In regards to number 3: I have a decently fast computer, and I don't have any problem with lag when pressing keys.
B
14
S
1
G
2
Posts: 85
Reputation: 2,810

Post » Sun May 20, 2012 2:13 pm

Down is 90 degrees and up is 270.

I'd say the delay is because you're using 'on key released' rather than 'on key pressed'.
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020


Return to How do I....?

Who is online

Users browsing this forum: DemantDigitalArt, imothep85 and 24 guests