Turret Behavior

Discussion and feedback on Construct 2

Post » Mon Aug 26, 2013 10:19 pm

I'm not 100% sure how to describe the issue I am encountering so please bear with.

I've been playing around with a couple of the examples and testing them on my phone. I came across the tower defense style game and encountered an odd issue when running it on the phone.

It seems the sprites go outside the box and follow the outside layout before entering the path again part way through the layout. Also the turrets seem to stop firing after several seconds on the phone.

Any insight as to why these behaviors might be happening would be greatly appreciated.

Android 4.1.2
HTC One
B
5
S
1
G
2
Posts: 18
Reputation: 1,436

Post » Wed Aug 28, 2013 5:36 pm

Has no-one seen anything like this? Is it perhaps something with my phone or something else along the pipeline?
B
5
S
1
G
2
Posts: 18
Reputation: 1,436

Post » Wed Aug 28, 2013 6:24 pm

I suspect it has to do with the sample wasn't written for the phone. While C2 is mobile capable, the defualt templates unless state mobile, aren't. so running a desktop template on mobile may cause strange behaviours with the logic.

Have you compared the games movement logic against the games layout dimensions, canvas dimensions and the phones own resolution?
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,018

Post » Sat Aug 31, 2013 8:51 pm

Thanks a lot jayderyu. I appreciate the input. Playing with the layout a bit and the collision boxes a little changed the behavior. The issue with the offset in the touch was in relation was to do with the on screen menu bar in android. I made too many assumptions at first I would guess. The touch inputs in the example were misleading ;)

Thanks again for the input!

Edit: Should also point out there is still issue with the turret behavior. It stops firing after a short time and stops tracking i've tried having it update every second as well and every tick to see if I could change how it was behaving. i cant seem to find any rhyme or reason on why this is.Om3n2013-08-31 21:12:13
B
5
S
1
G
2
Posts: 18
Reputation: 1,436


Return to Construct 2 General

Who is online

Users browsing this forum: mihirolover and 3 guests