News:

Function Finder  Find all the functions within source code files

Main Menu

Clowns 'n' Balloons final released !!!

Started by micky4fun, April 24, 2009, 02:51:10 PM

Previous topic - Next topic

BlinkOk

i'd go with u9 on that one. just give the clown a general speed and direction and apply gravity and friction. i think the problem is your trying to get the clown to bounce over to the side. i wouldn't worry about that. just let the clown go where it may and make the cannon follow it. if the cannon crosses the see-saw make it go behind and make the clown do the same. gravity and friction are easy. you apply them like this;

friction = .98;
gravity = 1;
.
x = x + xspeed;
y = y + yspeed;
y = y + gravity;
xspeed = xspeed * friction;
yspeed = yspeed * friction;

u9

hehe i think i managed to make a snippet that uses cos and sin to set the clowns position so you wont need to move the cannon... i didnt catch the moving-cannon part. I read it as only changing the angle of the cannon to catch the clown when he came... maybe i missed a post or two. Oh well, let me know if i can be of more assistance.

micky4fun

#62
Hi u9

thanks for code , think ive suss it now , pennys dropped , at last
very kind of you taking the time to show me , this will now come in handy for and further games i need to do this , if i dont use it here ..

i did it 2 ways , first way where he bounces towards cannon , this can take upto 4 bounces so slows game down a little as it takes time ,
2nd way the cannon comes in from either side of screen , nearest , clown bounces once and on second bounce hes in cannon ready to be fired , this way keeps the game flowing better i think.
so i may go with 2nd way

Hi BlinkOK

Yes i have the cannon and clown behind the see-saw , still a little worked to be tweeked in animations can do that at end of game
ok im knackard now , took ages just to get this far having been stuck hours on cannon and clown bit , you guys could have done it in 5 mins
both of you would have had game up and running well by now ..

ok start balloons moving tomorrow ..

thanks guys

mick :)

ps here's code so far , please add images from previous post , what do u think ? is it ok?

BlinkOk

#63
looks spot on. i don't see any problem with that at all.
ps: it's good to see it all come together. nice work
pps: see-saw is lookin sweet too ;)

u9

it is looking great. Also the way the cannon works and the animations seem to fit well together.

micky4fun

ok thanks guys , late one at work today , so just did some fine tuning on cannon firing animations , looks even a tad better now

think ile do awing placing next so i know where to put balloons

mick ;D

micky4fun

#66
hi all

ok done awning , just use right mouse to lower it and up it again , big thanks to u9 for hes code , master at work ..

now tickering around with balloons , now thinking sould i leave them the same as my game , or try to make them look a little 3d ish , does it work or not , which way is best ?

please comments on this would be great ,,

heres latest code , i remove older version , hope this is ok to do

mick ;D

BlinkOk

lookin good. the 3d ballons really looks cool.

micky4fun

#68
Hi BlinkOk and all

ive been tapping away , heres the latest code , ive been playing it more than writing the code as yes its looking very nice now , but as you have put a lot of time into the gfx , think the game is fun to play , but lacks lasting appeal maybe , so just to extend the gameplay a little , i thought , just an idea , once balloons burst , have the have something inside , a bonus or something at random , but not every balloon just some you could collect them in the middle bit of see-saw for extra points , or something like that , what do you's think , or just stick the game as it is ?

mick ;D

use images from last post on this code

BlinkOk

#69
lookin good micky dude. here's a bomb, a heart and a star. go to town mate. i might do an explosion type anim as well.
Download assets
ps: i added in the curtain edge with a magenta background. the black bg wasn't working with the later versions.
pps: i just noticed that those anims duplicate the first and last frames which cause them to pause. you could either take out the last frame or just let them pause. either way is ok i think

micky4fun

#70
Hi BlinkOK

ok thanks for new gfx , will replace curtain with new one , yep heart could be if you collect enough to get extra life , star for more points and bomb , could explode if hitting floor shaking see-saw or something like that , just thought it may add extra to game ,
Quotei just noticed that those anims duplicate the first and last frames
yep just started this second doing burst balloons animations with timers now rather than using counters the way i was doing it so sould be ok from now on
im not going to rush this one so much as others as its looking nice at moment and dont want to spoil it , also still got a few things for the girlfriend to do , got to keep her happy , haha

thanks Mick ;D

BlinkOk

ok sugg for the bomb; it explodes and bursts balloons within a certain radius.

i changed the bomb anim (only two frames so here it is);



micky4fun

Quoteok sugg for the bomb; it explodes and bursts balloons within a certain radius
ok ile give that a bash as well , going to do heart as bonus life and star as points then so looks like thats all sorted ,
ok BlinkOk , ile update as soon as im further down the line ,

ps , the new curtain image , i cant seem to get rid of the magenta from showing in game , when i change it to black its ok , but magenta's not ,
i dont know where in u9's code to change to make it work , i set imagemaskcolour cur.imgCurtain to rgb(255,0,255) but still shows up magenta on screen
mabe u9 can tell me what to do?

thanks
mick ;D

u9

Hey guys. I can try and have a look tomorrow. I am on linux machine now and it is very late and i have my first day of work tomorrow :)

BlinkOk

ok no worries with the curtain. i'll just replace it with my version.
i wonder why all the other images work with magenta and not the curtain?
i did an explosion anim (let me know if you need a larger one or not);
Download anim
good luck and have fun