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 [import]uid: 55068 topic_id: 12033 reply_id: 312033[/import]

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 [import]uid: 39088 topic_id: 12033 reply_id: 43957[/import]

I found out what this is. If the sprite stops on an inbetween pixel, eg x=100.5, it’s blurred. [import]uid: 55068 topic_id: 12033 reply_id: 44036[/import]

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. [import]uid: 55068 topic_id: 12033 reply_id: 44037[/import]

Awesome, Congrats on figuring it out. I love that feeling. [import]uid: 39088 topic_id: 12033 reply_id: 44099[/import]