Changing image point effected movement

Get help using Construct 2

Post » Fri Nov 08, 2013 10:57 pm

I have a top down grid based game similar to pac man. The player, enemy movement and line of sight is all based on player or enemy x, y. However after I brought the graphics in I changed the image point of everything to 0,0 so the graphics would properly align with the snap to grid function. After changing the image point all of the movement got messed up. For example if I press up the player might go left, If I press left the player might do nothing.

The reason I changed the image point in the first place was because I wanted my 32x32 tiles to snap within each 32x32 grid square, as opposed to snapping onto the grid crosshairs. Is there a different way of centering my tiles within each grid square that wont effect movement and line of sight? How can I fix this? Thank you for any help.
B
5
S
1
Posts: 6
Reputation: 424

Post » Sat Nov 09, 2013 2:42 am

And changing the image point back solves the problem?

If it does, maybe just substitute player.x/y with (player.x/y+16) in every function, same for your enemies. This way the values should be the same if the new image point is in the upper left and was in the mid before.mindfaQ2013-11-09 02:46:06
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788


Return to How do I....?

Who is online

Users browsing this forum: Lordshiva1948 and 11 guests