SpriteKit visual Editor bounding box not changing size - xcode6

In the SpriteKit visual editor for sks files when changing the size of scale of a Color Sprite the bounding box size doesn't appear to change with it.
The green rectangle appears to be correct when resizing an the sprite but when switching between edit mode and simulate mode the green box updates to what is happening when playing the game (in the attached image).
Objects are colliding with the bounding box that doesn't match the sprite shape. The sprite is pinned and is not dynamic or affected by gravity or rotatable.
This is happening in Xcode 6.4 but didn't seem to happen in previous versions of Xcode.

Related

Unreal Engine 5.0.1 - 3D game objects displayed in orange colour

I downloaded Unreal Engine 5.0.1 recently and created an RPG project. But once the project loaded,
the playground and every other object in it were orange in colour;
and the player didn't show up on the screen either. The player was
only visible in the "Play" mode, but it was orange in colour too.
see viewport image here
The only way I could see the player or any other material in its original grey colour was when I double-clicked on them in the content folder and viewed them separately.
see player's viewport image here
I checked to see if the material colours of the objects are orange too. But they were all shades of grey.
I tried adding a new cube and it came out white (not orange). Then I replaced its material with the other grey colour materials available in the project. The only thing that changed was the material texture of the object. The colour switched back to orange again.
I checked and unchecked all the things in the "show" menu, but it didn't help either.
This was the very first project I created right after I downloaded Unreal Engine. None of the default settings was changed.
How can I make the player visible, and how do I get the orange colour to change back to the original grey colour?
I found it!
You need to uncheck Visible, in the Rendering drop-down menu in the SkyAtmosphere Actor.

Adjust width of Focus Rectangle around QLineEdit on Mac

When a QLineEdit has focus on a Mac, the Mac automatically puts what seems like a 3px-4px wide Focus Rectangle around it. I read
Qt4 Stylesheets and Focus Rect but I only want to adjust the width of the Focus Rectangle (to maybe 1px-2 px), not remove it.
using a for loop for all of my widgets, I also tried
if isinstance(widget, QLineEdit):
widget.setAttribute(QtCore.Qt.WA_MacShowFocusRect, 1)
thinking that the "1" would set the width of the rectangle to 1px, but the code did nothing (my syntax may also be wrong).
Is it possible to set the width in pixels of the focus rectangle on a Mac.

Unity Prevent game objects from resizing when resolution changes

I have a rectangle sprite that animates when a score is reached. Starts offscreen and then move onscreen before moving off-screen again. Works fine. Problem is when I change the resolution for different devices the sprite resizes and doesn't display as intended. The text fields inside the rectangle move outside on some of the resolutions. How can i keep the sprite at the original size regardless of resolution. I have tried Preserve Aspect, Set Native Size, moving anchors but it still resizes. I also tried using a panel.Any Ideas?

Bounding boxes uncalibrated / offset in retina display mode

I use cocos2d in the game I am developing for iOS.
When running in the iPad simulator or the non-retina iPhone simulator, the bounding box correctly surrounds the sprite.
When I use the retina simulator, the bounding box seems to be offset by a certain amount.
The bounding box no longer surrounds the sprite. This applies to child sprites as well. But since all the boxes are offset by the same amount, the bounding boxes of the child sprites correctly appear within the bounding box of the main sprite. The problem is that all the bounding boxes are offset from the actual sprite.
This seems to be the case for all the sprites on screen. Is there some setting change or code change I need to make to ensure the bounding boxes actually surround their sprite?
I use cocos2d version 1.01

.NET Graphics on Windows 7: White corners around images?

I've been working on some custom graphics controls, and I found this weird problem with windows 7 rendering my button controls. I've used Photoshop to delete the pixels in the background all around the button image I'm using, then saved it as a GIF, and imported it into VS to use as the background image of my button. When windows XP renders it, it is fine, but when windows 7 renders it, all 4 corners have an odd white border around them.
You can barely see them in this pic, but they are much more apparent when looking at them on the client PC's.
Is there something wrong with the way I am transfering the image? should I not use a gif? is there something wrong with the way I am displaying it on the button? What can I do about it?
GIF was a bad choice, it can only render images with 256 colors. You need all the colors you can get to make the anti-aliasing work properly. Use PNG.
You will also need to make sure that the background color of the container is the same as the one you used in Photoshop, the anti-aliasing pixels will otherwise have the wrong colors. And you cannot stretch the image, that will also stretch the anti-aliasing pixels, ruining the effect.