@Joethemonkey101 you are waaayy overthinking things... Do you not understand what cocos2d is? You have CGPointMake because it comes with xcode, ccp is a shortcut implemented in cocos2d, a background sprite is a normal sprite.. the is no CCBackgroundSprite! It's a normal CCSprite positioned in the center of the screen with a z value below all the other sprites...
Add sprite
(162 posts) (19 voices)-
Posted 1 year ago #
-
Ok thanks again Techy. Any info on CCColorLayers?
Posted 1 year ago # -
dont worry about CCColorLayer.. I don't think it's too important
Posted 1 year ago # -
Ok then, I'll just look at the links RoboDude gave me...
Posted 1 year ago # -
I have some questions that are necessary to learn cocos2d.
What do these lines of code mean? They're in random order, not ment to actually do something.rect:CGRectMake(0, 0, 27, 40)];
(player.contentSize.width/2, winSize.height/2);
CGSize winSize
everything about ints
ccp(winSize.width + (target.contentSize.width/2), actualY);
int actualDuration = (arc4random() % rangeDuration) + minDuration;
ccp(-target.contentSize.width/2, actualY)];
id actionMoveDone = [CCCallFuncN actionWithTarget:selfSorry for all the questions.
Posted 1 year ago # -
"rect:CGRectMake(0, 0, 27, 40)];"
"id actionMoveDone = [CCCallFuncN actionWithTarget:self"Here you are posting only a part of a method call - so its pretty hard to explain or understand what you are asking. Here is the basic format of an objective-c method call:
[object doThisMethod];send a
doThisMethodmessage toobject[object doThisMethodWith:variable1 andWith:variable2];send a
doThisMethodWith:andWith:message toobjectpassing the variablesvariable1andvariable2Posted 1 year ago # -
i just want to know what the code is used for
for example, ccsprite is used as an object
i don't know what cgsize winsize is or doesPosted 1 year ago # -
CGSizeis a datatype, andCGSize winSize;would create a new variable calledwinSizeof typeCGSizejust likeint x;would create a variable calledxthat is anint.Posted 1 year ago # -
Can you explain what an integer does please?
Posted 1 year ago # -
@Joethemonkey101 have you tried looking it up with Google? I understand you don't have any programming experience but you might find some really nice and clear explanations of basic programming concepts on the internet.
Also you should try getting some books on the topic. Code Complete is a great one in my opinion.
EDIT: BTW, I am totally impressed with your stick-to-it-ness with this. Though asking these kind of questions in a forum might not be the most efficient way to get answers I really appreciate and admire how you keep going. Keep it up! I think many people here can help point you in the right direction and get the answers you need more efficiently.
Posted 1 year ago # -
@Joethemonkey101: Perhaps you should take some people's advices here with learning how to program first before tackling cocos2d. Mind you, game programming is actually a form of higher level programming. You cannot expect to learn everything through forum posts and frankenstein code. As someone has pointed out in the previous page, you should learn to walk before you run.
If you do not know what an integer is, then you are in trouble.
It is best to either pick up a book or get the proper education in school. You seem to be very enthusiastic in learning so you should do well. As helpful the people in the community are, you cannot rely on them to educate you on everything.
Good luck in your endeavours.
Posted 1 year ago # -
...I really appreciate and admire how you keep going. Keep it up!
Please don't. Asking what an integer does in the forum is not appropriate. Please read the "Read Before Posting" thread about asking good questions. If you keep flagrantly abusing the posting guidelines you will be banned.
You have to appreciate that many people get every post to the forum as an e-mail. At the moment they probably hate Joethemonkey101 more than they hate viagra spammers.
However, tbone28's recommendation on Code Complete is a good one, I love that book.
Posted 1 year ago #
Topic Closed
This topic has been closed to new replies.