Weird Object Problem

For questions about using Classic.

Post » Thu Jun 23, 2011 9:36 am

The game i'm working on is a top-down turn-based game. Right now I'm working on a system that calculates whether you can enter the adjacent spaces based on the terrain and how many points the player character has left using a recursive function.

I have it so when you click the PC (a sprite) it should trigger the function. The problem is, when I click it, it does nothing, but when I click within 32px LEFT of the object, it triggers, meaning the object seems to be to the left of where it appears on the screen. I think I'm having trouble with other objects because of this as well.

I tried moving the objects' hot spots around, but this has no effect. All of the objects are 32x32px squares. I even tried to create a new sprite and it has the same problem. It seems the offset is always 32px, no matter the size of the object. It seems there is some variable I'm missing but I don't see it. Help with this is appreciated.
B
5
S
1
G
3
Posts: 9
Reputation: 1,108

Post » Thu Jun 23, 2011 9:43 am

Could you post your *.cap file?
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Fri Jun 24, 2011 5:35 am

B
5
S
1
G
3
Posts: 9
Reputation: 1,108

Post » Fri Jun 24, 2011 1:45 pm

Are you using any third party plugins?
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Fri Jun 24, 2011 2:06 pm

Strange. Seems to be working fine over here; nothing happens if I click around the player, only directly on it.
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Sat Jun 25, 2011 9:42 am

No plugins are being used.
I think changing the program's window size fixed the problem (before it was quite a bit wider than the default, I think ~2000x640), though I have no idea why that would be.
B
5
S
1
G
3
Posts: 9
Reputation: 1,108


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests