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 - AlejandroCoria

Pages: 1 [2] 3 4 5
16
In the code you show you are not positioning the tiles so they are all drawn in the same place. The tile that is visible is not necessarily the same one that is modified when clicking.

17
In the function logic::buttonCheck you are creating a local variable of type graphic instead of using the same one of game.

18
General / Re: Mover un objeto hacia el jugador
« on: May 24, 2017, 03:44:59 pm »
atan2, sin and cos use radians, you do not have to convert anything.

19
Graphics / Re: Why can't i see my sprite?
« on: April 16, 2017, 10:47:35 pm »
One problem I see is that you are creating a local Texture playerT in the Player constructor, which hides the member with the same name.

I recommend you learn how to use a debugger and activate all the warnings in your compiler.

20
Graphics / Re: sf::Texture getSize() crashes the program
« on: April 12, 2016, 09:47:36 pm »
If you do not set a texture to a Shape, getTexture return nullptr.

21
I had the same problem, create a context in the main thread and the other in another thread causes the recursive loop (no matter in what order were created).

I solved using the branch https://github.com/SFML/SFML/tree/feature/no_internal_context.

22
General / Re: I can't use std::ofstream
« on: November 06, 2015, 05:59:30 pm »
pollEvent leave parameter unmodified if no event. You should not read the type of event if pollEvent returns false.

23
SFML projects / Re:creation - a top down action rpg about undeads
« on: September 10, 2015, 09:37:04 pm »
It's originally written in English, I'll also make the Russian translation.(Because I'm from Russia, he-he).
As for other translations: I would love to have German, Spanish, French, Japanese and maybe other translations. If I find some people who would do these translations, this would definitely happen. (If I have enough money to pay them, or if some people volunteer).

I would have no problems in translate to Spanish in my free time ;)
(I'm from Argentina)

24
Graphics / Re: animation?
« on: September 03, 2015, 05:07:00 am »

25
General / Re: Forward Declaration of an enum
« on: August 29, 2015, 07:50:53 pm »
I use this method (public at the end) since 2 years and for me it makes sense :D I learned it like this. I will not change it now :D.

I also used to put public at the end. In the project I'm doing now I decided to move all public at the beginning and i do not regret it :D

I recommend it.


PD: I did not know you could forward declare an enum class :o

26
Window / Re: Fullscrean falling
« on: June 12, 2015, 01:45:04 am »
Wow, I completely overlooked that :P

27
Window / Re: Fullscrean falling
« on: June 11, 2015, 09:45:07 pm »
You have to check if the event type is KeyPressed or KeyRelease before seeing what the key code.

28
General / Re: Flickering
« on: June 10, 2015, 09:54:05 pm »
I started using SFML in version 1.6 and for some reason I never remember that function was added :P

29
General / Re: Flickering
« on: June 09, 2015, 01:55:12 am »
That's right. I usually recommend the use of events because they are only activated when the window is in focus, which is what you usually want. But obviously it is another possible solution :)

30
General / Re: Flickering
« on: June 06, 2015, 05:07:55 am »
You should look at your project settings (if you are using an IDE).

Pages: 1 [2] 3 4 5
anything