Hi all! i'm new in the forum :)
I'm programming a Visual Novel engine in obj-c with cocos2d. Now, i'm writing the class for drawing text messages, but i'm a problem with one method...
When I init this class with string message, I split the message in a NSMutableArray witch contain one single words in each element of the array.
At beginning my class scheduled a selector each 0.02 sec and print a single letter of the word in the position 0 in the NSMutableArray.
When i get the touch input and the message is not finished, I unscheduled the last method and call a new method that write all message in one time.
But, this method print two times the same word and i don't understand why...
I post the two methods..
http://pastebin.com/xaZSjvn1
CCLabelTTF print two time
(4 posts) (2 voices)-
Posted 3 months ago #
-
anyone??
Posted 3 months ago # -
Try to place a breakpoint and debug with Xcode for finding the issue.
Posted 3 months ago # -
already done ... but I can't fix it.. in NSLog it's all okay .. meanwhile in the video there are two print of the first word without the first letter...
Posted 3 months ago #
Reply
You must log in to post.