N/APosted on - 08/07/2012
I doubt as to how I could randomize the sort of questions when all the question are in an NSInteger. I am applying the following code to attempt and show my arc4random, but it crashes and doesn’t load accurately.
Question = arc4random() %6 +1;
Please give me a solution to solve this.
Thanks a lot.
Code to arc4random crashes and doesn’t load accurately
The first steps towards solving that issue will be to check the following:
Check how the wpeep_layer has been defined, for the problem might be coming from there. If there are any changes you will need to do to the definitions you will need to do them.
Check how the addWpeep has been defined.
Check the last position that has the definition of the peep,
What could be the most probable cause of the problem could be some mistake in the addWpeep.
You should also try adding planets – make sure you get the right one for your version of weeps – which should be CCSprites with the z value of between the layers.
Hope that helps.