0 Members and 1 Guest are viewing this topic.
sf::FloatRect Restraint[2];Restraint[0](Left, Top, Width, Height);
error: expected constructor, destructor, or type conversion before ‘(’ token
for (int w = 0; w < Walkable.size(); w++){ if Restraint[w].Contains(Mouse_Click_X, Mouse_Click_Y) { if (Restraint[w].Contains(Actor_Y, Actor_Y) { //handle movement; break; } }}
sf::FloatRect Restraint[2];Restraint[0] = sf::FloatRect(Left, Top, Width, Height);
error: expected constructor, destructor, or type conversion before ‘=’ token|
Restraint[0] = sf::FloatRect(Left, Top, Width, Height);