Tutorial on Animation page: "Simple Animation with cocos2d"

40 views
Skip to first unread message

nederhoed

unread,
Nov 24, 2009, 3:17:45 PM11/24/09
to cocos2d discuss
Hi folks,

if you're interested, I've posted the simple steps to create an
animation as a small tutorial. Please check it out and let me know
what you think:
http://groups.google.com/group/cocos-discuss/web/simple-animation-with-cocos2d

Hope you like it, regards, Robert-Reinder

claudio canepa

unread,
Nov 26, 2009, 7:27:06 PM11/26/09
to cocos-...@googlegroups.com

--



Thanks for sharing.
I am interested in cocos and in the process of building good tutorials, so maybe my opinions are way too detailed and long. Also, I'm not a tutorial specialist :), so feel free to disagree with anything I say.
  
Tutorial Style criticism:
1. State explicitly the problem you will address: maybe 'How to show a character either by a single image or a continuous loop animation with cocos library'.
 
2. Eliminate distractions: being the tutorial in the cocos-discuss pages, you can assume the readers have cocos, pyglet and python. Also, include all the relevant files in one zip or tgz, with a link to them  ( the zip is a one step operation, while pointers to a bazar repo  would require navigating the repo and multiple downloads, or potentially install bazar, lookup for the bzr sintax. Also, the repo contents can go out of sync with the tutorial).
You can upload files to cocos-discuss space from the page 

Incidentally,
quote:
end quote
misses one parrot frame
 
and
 
quote:
You can copy and paste from this page, or get the code and images from Launchpad:
python code:
tutorials/animation-00/animate.py
end quote
That file animate.py has the problems:
is not the same code you show in the tutorial
it depends on additional code ( import MouseInteraction )
 
 
Content criticism:
The code presented seems adequate when you have a character that don't need to change  animation sequences, like a cloud (non animated) moving in the sky,  a tree moving in the wind (continuous loop), a top down view of a bird patrolling between three points( continuous loop plus move/rotate ).
But the example names points more to a state-driven animation ( 'still', 'flapping' ), for which the code presented is not particularly fit.
I would left the state-driven animation to a second tutorial, thus changing the example to fit the simpler cases.

Also, I think it would be easier for the reader to have a complete working script to look ( the actual script has a 'to be replaced' line, the eyes must go up - down - up to see how it works )

--
claxo

 
 



nederhoed

unread,
Nov 27, 2009, 6:26:10 AM11/27/09
to cocos2d discuss
Claudio, thank you for the extensive evaluation. Very valuable! I will
adjust the tutorial according to your suggestions.

The second tutorial will be state driven indeed.

For my gaming skills I'm working on collision detection using Rabbyt
from cocos2d. Might use that too... or maybe not, as you rightly
stated: avoid distractions. :-)

Thanks again. More next sunday, ciao, Robert-Reinder
--

saranya jayaseelan

unread,
Nov 27, 2009, 5:52:19 AM11/27/09
to cocos-...@googlegroups.com
thanks but now iam working in cocotron using objective c fior iphone would u able to help me friend?

 
 

 

 

 

--

You received this message because you are subscribed to the Google Groups "cocos2d discuss" group.
To post to this group, send email to cocos-...@googlegroups.com.
To unsubscribe from this group, send email to cocos-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en.

nederhoed

unread,
Nov 27, 2009, 8:12:11 AM11/27/09
to cocos2d discuss
Hi Saranya, please check:
http://www.cocos2d-iphone.org/forum/

That's the place to be for iPhone cocos2d users!

:-) Robert-Reinder
--
Reply all
Reply to author
Forward
0 new messages