Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - lvenonl

Pages: [1]
1
General / Re: Game not running on Windows 8
« on: April 26, 2015, 08:44:25 pm »
Thanks for the fast reply!

The driver is updated and I'm not running in a VM, it's in my laptop.

2
General / Game not running on Windows 8
« on: April 26, 2015, 08:37:06 pm »
Hi!

Using Visual Studio 2013 on Windows 7 I compiled my game and tested it on other machines. It works perfectly except on Windows 8. Whenever I run the game, the message "Game.exe stopped working..." pops up and the game crashes. Does anyone know how to solve this issue?

3
General / Re: Usage of GetLocalBounds()
« on: March 03, 2015, 04:42:47 pm »
But in both cases GetTextureRect also serves well:

auto rect = mySprite.GetTextureRect();
mySprite.SetOrigin(rect.width / 2.f, bounds.height / 2.f);

The only difference between these two functions is that GetTextureRect returns an x and y relative to the Texture's coordinates (useful for sprite animation). My curiosity regarding the usage of this method is specifically the returning values of the coordinates of the Sprite.

4
General / Usage of GetLocalBounds()
« on: March 02, 2015, 11:18:53 pm »
Hi there,

I'm new to SFML library thus I've been studying the Sprite class and I've got a doubt about the method GetLocalBounds(). What is the actual usage of this function?

I do understand that it returns a Rect with the dimensions of the sprite inside it's coordinate system, I just couldn't imagine any actual usage of this method. Why would I want to get the local bounds of the sprite? I know it's a silly question, I just couldn't sleep with it in my mind   :-[

Pages: [1]
anything