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

Pages: [1]
1
SFML website / Re: Unable to reset password on Main Forum account
« on: April 17, 2016, 05:06:48 am »
PapaSmurf :) Okay cool just let me know when it is unblocked!

2
General / Re: Trouble using iterator for collision
« on: April 12, 2016, 03:16:49 pm »
I tried changing this too
skeletons->erase(skeletons->begin() + it);

but the error I get is
   51   IntelliSense: no operator "+" matches these operands
            operand types are: std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Skeleton>>> + std::_Vector_iterator<std::_Vector_val<std::_Simple_types<Skeleton>>>


so I then tried it this way
skeletons->erase(it);
Error   7   error C2582: 'operator =' function is unavailable in 'Skeleton'   c:\program files (x86)\microsoft visual studio 12.0\vc\include\xutility   

Any ideas what is going wrong here? I appreciate this is probably very simple problem but I tried various solutions from google to no avail.

3
SFML website / Re: Unable to reset password on Main Forum account
« on: April 12, 2016, 03:12:44 pm »
I had to setup this account with a different email address because it said my main account email address is in use.

I have no idea what the problem is I tested the reset password functionality on this new account and it works fine.

Hope this helps.

4
General / Trouble using iterator for collision
« on: April 12, 2016, 11:22:35 am »
Hi,

I am having some troubles with the collision detection within SFML I have a Vector of skeletons
std::vector<Skeleton> *skeletons = new std::vector<Skeleton>();

I am then trying to test whether or not the main character intersects with the any of the enemies I am trying to do this using a iterator.

for (std::vector<Skeleton>::iterator it = skeletons->begin(); it != skeletons->end(); ++it)
       {
              if (mainCharacter->mSprite.getGlobalBounds().intersects(it->mSprite.getGlobalBounds()))
              {
                     /*skeletons->erase(skeletons->begin() + *it);*/
                     skeletons->erase(*it);
              }
       }

Do you have any idea what I am doing wrong here?

Kind Regards

5
SFML website / Unable to reset password on Main Forum account
« on: April 12, 2016, 10:56:26 am »
Hello,

I am unable to reset my password on my main forum account. When I use the reset my password functionality I do not receive any email. I have checked my junk folder etc. This process has been repeated various times but still no success.

Can you please advise?

Kind Regards

Pages: [1]