It looks like you're new here. If you want to get involved, click one of these buttons!
Hi guys, it's my first topic and this is my simple game (if I can say that) http://pastebin.com/0qcVKgjW . I make it for 2-3 hours and i have some unsolved problems : 1. How can I spawn more flys then I tap this one? (I read ignatz book, but "balloon" example don't work for me. Maybe I'm dumb for programming) 2. Maybe there is some shorter way o make button on this fly ?(now I take roundrect and button classes from example projects) 3. Is there some elegant way to animate my sprites?
Ps. Sorry for my English . And wasting your time
Comments
@lupino8211 - welcome. And you're not wasting our time. We like helping people like you. It's too late at night for me, but I'm sure you'll get help here.
@lupino8211 - and don't be sorry for your English. I can't speak any of your language! Also, we come from all around the world.
As long as we can understand what you are saying, we can help you.
@Ignatz thank you. I'm very interested in making games, and you books are very helpful for me .
@lupino8211 difficult to make a detailed answer to your question. You could look at this code: it draws 300 butterfies, which are touch sensitive, and the drawing is efficient (if not 'elegant'). Managing many buttefies is done by creatin a 'butterfly' class. Maybe this example can help you?
@Jvm38 thank you very much. Looks very useful for me. I'l have a look on this more careful
@lupino8211 Here's a version of what I think you're after. It keeps track of your hits and misses. The score is (hits - misses) but doesn't go negative. The speed of the fly increases as your score increases. This doesn't use classes to keep it simple. Maybe this will help you some.
@dave1707 you make it very simple and more interesting, thanks . And I played for a 20 minutes in this game. Awesome
@lupino8211 It doesn't take a lot of coding to do things with Codea. You just have to think ahead of time what you want to do and how it needs to be done. Unless you totally understand how someone else's classes work and what they're intended for, you can be pulling in a lot of code you don't need. Also, the more programs you write, the more you'll understand how to do thing easier. And the programs don't have to be big to learn.