Feature Suggestion: Snap to nearest pixel

I find it really odd that even when you fit things perfectly, by stretching actors or just moving them around you seldom get a proper size/position. It's normally some ridiculous fraction with many numbers after the decimal point. I don't know about others, but this has become very time consuming for me as I later go back and round everything to the nearest pixel (eg. 127.7188 becomes 128) to prevent any level tearing and make it easer to memorize sizes/locations of objects.

So having everything snap to the nearest pixel is my latest request.

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Yep snap to grid is on the list for future inclusion.
  • CobraBladeCobraBlade Member Posts: 97
    Looking forward to that one. While my current game will be finished before then, at least my future games can benefit from it.
  • UtopianGamesUtopianGames Member Posts: 5,692
    I really want this feature but for now i use this tool Wayne made.

    (Free with any other tool purchase).

    http://www.deepblueapps.com/gs-scene-merger-page-1/

    Darren.
  • SocksSocks London, UK.Member Posts: 12,822
    edited August 2013
    . . . It's normally some ridiculous fraction with many numbers after the decimal point. I don't know about others, but this has become very time consuming . . .
    Yep, agreed, it's ridiculous and time consuming, people have been complaining about this for years now but the issue is still there, I'm not sure if the issue has even been recognised by GameSalad (?), but even if they are aware of it these things tend to take years, literally, to be resolved (if they ever are resolved), so I wouldn't hold your breath . . . . a work around would be to make some kind of auto-snap-to-pixel system that automatically corrects the actor's position to the nearest whole pixel value.

    If you put the following two Attribute Change rules into each actor they will always sit on whole pixel values.

    Change Attribute: self.Position.X to floor( self.Position.X )
    Change Attribute: self.Position.Y to floor( self.Position.Y )

    It can be easily adjusted to snap to multiples of pixel values too, the following will snap the actor to the nearest 10 pixel grid position (140 - 150 - 160 - 170 . . . etc)

    Change Attribute: self.Position.X to floor( self.Position.X /10)*10
    Change Attribute: self.Position.Y to floor( self.Position.Y /10)*10

    . . . .stupid and unnecessary extra rules, but at least it works (at run time at least).
Sign In or Register to comment.