Player no longer turns toward mouse

Bugs will be moved here once resolved.

Post » Fri Jan 31, 2014 2:46 am

Link to .capx file (required! If link is blocked remove the http and www parts):
https://docs.google.com/file/d/0B0MWE8QALlw7LWtJczJzNHd2b00/edit

Steps to reproduce:
1. Follow tutorial
2. Add additional System actions as per 1. test, test and re-test.
3. Submit this form and get a timeout error. Swear loudly. Redo from scratch. Threaten to move to a more mature platform.

Observed result:
Player no longer turns toward mouse

Expected result:
Player should turn toward mouse

Browsers affected:
Opera. Can't test on others, obvious method doesn't work, don't know how to force it. Construct lacks a cycling command, a drop-down or a way to force preview, as well as instructions on how to make it happen.

Operating system & service pack:
Window 7 SP1, latest updates.

Construct 2 version:
Latest Stable
B
7
S
1
Posts: 27
Reputation: 505

Post » Fri Jan 31, 2014 1:32 pm

Your .capx is working correctly. You only set the angle of the player once on start of layout. Change it to 'every tick' and it works fine.
Scirra Founder
B
397
S
236
G
88
Posts: 24,428
Reputation: 194,570

Post » Sat Feb 01, 2014 2:42 am

How embarrassing. Sorry to waste your time. I can only guess that I deleted 'every tick' by accident when I added the secondary commands. As you said, it's fine now.
B
7
S
1
Posts: 27
Reputation: 505

Post » Sun Feb 02, 2014 12:55 am

I can now reproduce the problem.

Update: what happened was, as mentioned above, I added a secondary system command and that's when it freaked out.

I added the command - nested within the first System command. Like this:

System>on start of layout>player>set angle....
System>every tick>player>set angle....

Whereas it should be:

System>on start of layout>player>set angle....

new command>blah blah

new command>blah blah

System>System>every tick>player>set angle....

I think I got Events (which can't be nested) mixed up with Actions (which can).

So, once again, thanks be unto me for figuring it out, and thanks to you for pointing me in the right direction.

B
7
S
1
Posts: 27
Reputation: 505


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest