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 - Martin Sand

Pages: 1 [2]
16
General / Re: Projectiles
« on: July 20, 2017, 07:43:13 pm »
Quote
Oh its that simple? lol, vectors are very powerful.

Yes, and sometimes tricky. Be careful when iterating through vectors. When you projectile goes out of a certain range (coordinates) and you want to delete it from the vector, the iterator goes out of scope.

17
Graphics / Re: Rotation going nuts
« on: July 07, 2017, 11:45:02 pm »
Quote
setOrigin(mHitBox.x / 2.f + getPosition().x, mHitBox.y / 2.f + getPosition().y);
Why do you add the position to the origin?

18
Graphics / Re: Pixel Color
« on: July 04, 2017, 11:16:15 pm »
How can I read the color of a specific pixel on the screen?

What exactly do you want to achieve?

19
General / Re: Tank Line of Sight
« on: May 02, 2017, 11:01:25 pm »
Where is
userTankPos
coming from? I assume it is not part of the Enemy class/object so it is probably undefined and therefore never gonna match the condition.

20
I can clearly see on my screen that the tower is not in the 0,0 coordinate, but it says it is anyway.

Can you please be more specific, what component "says" the tower is in 0, 0 coordinate? Can you please post more code?

21
Graphics / Re: Trying to create a tilemap in a class.
« on: April 17, 2017, 05:04:53 pm »
[...]
But other functions of the class cant use the map.
[...]
I cant pass it to the function as a parameter either.

Darkpony, can you please provide more details about the context and include the functions which do not work?

Best regards
Martin

22
Tell your friend: awesome music  ;D

Some infos on the textures. Did you create everything or do you use procedural textures for some of the parts?

23
That looks good! Looking forward to playing it.

I never thought about this, but music is important and this one matches well. Did you use available music or is it self-composed? If yes, which tool?

Best regards
Martin

Pages: 1 [2]