Sprite position problem while resizing

Post your help queries and engine programming questions here

Sprite position problem while resizing

Postby Maxoulaf » Fri Jan 16, 2015 12:06 pm

Hello,

First of all there is a screenshot in game : Image (it's voluntary blurred, we only care about the GUI on the bottom)

Icons like sound or zoom are placed with the IgeUiElement attributs left and bottom. I set a value in percent and mount this UiElement on the main bar so when I resize the window, everything fit. But there is the problem : if I resize too fastly, or if I put the fullscreen, every element placed with percentage on the main bar is messed up, like that : Image . And everything go back to normal if I resize slowly, even a very little resize like 1px.

I have a similar problem with my IgeFontEntity and the attribut autoWrap(true). Those which are mount in the main bar are not correctly wrapped (like one or two letters are cut at the right of my sentence), until I resize, even a little. Then it fits correctly.

Thanks for your concern
(Sorry for the english mistakes, I'm a french student)
Maxoulaf
 
Posts: 1
Joined: Fri Jan 16, 2015 11:27 am

Re: Sprite position problem while resizing

Postby robaldred » Mon Mar 02, 2015 4:48 pm

I'm guessing this issue is like you say related to fast resizes and either miss calculation or the browser miss reporting the dimensions.
The simple solution would be to implement a simple timer so that the resize event only does something say 100ms after the last resize event was triggered
I don't work for Irrelon. All comments are my own.
I would strongly encourage anyone building production projects with Isogenic to buy a premium licence, it costs very little and will help towards continued development of the engine. Irrelon have spent thousands of hours developing this wonderful platform with many features found in AAA game engine.
User avatar
robaldred
 
Posts: 243
Joined: Wed Oct 23, 2013 8:09 pm
Location: Manchester, England


Return to Help & Questions

Who is online

Users browsing this forum: No registered users and 1 guest
cron