Weird problem

I'm using collision detection to cancel movement transitions if characters hit each other. The problem is that on cancellation of the transition, the sprite becomes ever so slightly blurred. I've been working all afternoon trying to resolve this.

Any one hit this problem??

Thanks

Tom

Nope havent hit anything like that. But glad to be aware of it. I would probably use a transition manager class to pause the transition and then cancel though. It might work

JM

I found out what this is. If the sprite stops on an inbetween pixel, eg x=100.5, it's blurred.

Here's a little fix if anyone else hits this:

cleanX = math.round(self.x);
cleanY = math.round(self.y);
transition.to(self,{time=0, x=cleanX, y=cleanY});

WAHOO! been having problems with this for days.

Awesome, Congrats on figuring it out. I love that feeling.

views:1427 update:2011/9/28 21:38:26
corona forums © 2003-2011