Pin and set position issues

Get help using Construct 2

Post » Mon Oct 14, 2013 9:07 pm

So I made a sample file with a player and an arm that is set to the player every tick and also follows the mouse.

https://dl.dropboxusercontent.com/u/211250504/setPos_setAngleEXAMPLE.capx

There is literally only one event and it works great; no lag. It would appear that my massive event sheet is the culprit. I'll have to re-arrange some stuff.
B
7
S
2
G
2
Posts: 14
Reputation: 1,626

Post » Thu Oct 17, 2013 2:16 am

So I got around to trying to fix this today. I figured out what was the issue, although I'm not sure why it's an issue.

I have an invisible player sprite, and all the body parts are pinned to it, besides the shooting arm. The shooting arm's position was set to an image point on the walking animation, which was pinned to the player sprite.

I set the position of the arm to the player sprite, and no lag. However, if I set the position on anything pinned to the player sprite, I get lag.

So from what I've been testing, the location of the scripting doesn't matter. You just can't set something's position to something that is pinned.
B
7
S
2
G
2
Posts: 14
Reputation: 1,626

Previous

Return to How do I....?

Who is online

Users browsing this forum: luck1210, RedBlackSpade and 5 guests