but to no avail
What am I doing incorrectly? I have not manipulated the vector anywhere
additionally, is there anyway I can use a for loop like this to achieve the positioning?
You've been here long enough, under your various different accounts, to know very well that you should give a clear, complete, and precise description of the problem you're seeing.
You've also been here long enough to know very well that you should post a minimal, compilable codeset that reproduces the problem.
It's hard not to conclude that this is just another of your desperate, attention-seeking trolling attempts.
Mike, why would I want to waste your time? this is delaying my project. By this I mean it does not work.
Sorry if the original post seems rushed, too. the initial was 404d
You can't compile this, because it's for a framework...
But otherwise, I will elucidate like you asked:
The first code snippet is a for loop, in which I make 5 "menuitemimages" and each each of those indivual menuitemimages to a public vector
the second code snippet, is where I try to individually run a unique action to each member of the vector.
THE ISSUE IS
The action doesn't work. Nothing happens. Which is odd, what am I missing?
for (int i = 0;i< 5;i++)
{
H = Sprite::create([***unique position], [imagefile]);
VectH.push_back(H);
}
***the for loop repeats five times, so each H copy goes to a unique position
Ok, the code ABOVE works FINE. It creates FIVE sprites, and they are positioned uniquely. Now a function is called, and this function's purpose is to MOVE all the FIVE SPRITES to another position.