CCMoveTo Problem

I am making an obstacle game, but I am running into issues with the obstacles not moving across the screen. I haven’t designed the obstacles, so I am using a simple stick person design as a reference of timing. I am storing the obstacles within a CCArray and the timings within an int vertex. I have a label on the screen showing me the time running, but the obstacles aren’t showing up. I am using the array/vertex format for simplicity of level design. It allows for me to just enter in times then adjust to where I want them. Note that I will not be using the for loop for adding times once I get this problem fixed. I will be manually adding in times in a different way.

LevelOneScene.h: http://pastebin.com/aDHWaDQW
LevelOneScene.cpp: http://pastebin.com/AyBjRaXt

You need to add the obstacle as a child of the Layer.

C.J. Kimberlin wrote:

You need to add the obstacle as a child of the Layer.

Ohhhh! Okay. Thank you! :smiley: