I am trying make a background shacking effect like fruit ninja when you touch the bomb. But I couldn’t manage to do it. Please any one can help me how can achieve such effect.
Similar to fruit ninja effects
(12 posts) (9 voices)-
Posted 1 year ago #
-
What could you manage to do? What have you tried? How do you think it should be achieved?
You can just run an animation that goes in different directions. Should be pretty simple to code something up.
Show us some of your test code and we'll help you out. We aren't here to code it for you.
A simple search on the cocos site reveals tons of stuff about animation:
http://www.cocos2d-iphone.org/forum/search.php?q=animationPosted 1 year ago # -
In order to get the shaking on screen just run a sequence of actions on the scene itself. Below is just a very slight shake, which I am using to show a player is hit. If you make it weaker it simulates combined with the proper bass sound being played it will simulate a forcefeedback. Which is even stronger on iPad. As Verisutha mentioned, you can combine it with moves, etc. ...
[self runAction:[CCSequence actions: [CCRotateTo actionWithDuration:0.5 angle:2.5], [CCRotateTo actionWithDuration:0.5 angle:-2.5], [CCRotateTo actionWithDuration:0.5 angle:0.0], nil]];KR Kai
Posted 1 year ago # -
@bambamyi - There've been a lot of "I want to do <fill in something> - please tell me how" posts lately, so I'm with @verisutha on this one.
@prasantha60 mentioned that he couldn't manage to do it, but some elaboration on that would have been helpful. Maybe he had it mostly figured out but something small was keeping it from working properly (which anyone would gladly help with), or maybe he didn't really try anything at all and was looking for a code handout. Without posting something that shows he's actually put in some effort to solve the problem, it's pretty easy to assume he hasn't.
I'm not saying that's exactly the case here, but it does seem more common lately.
Posted 1 year ago # -
hmmm... the point is, if you cannot be helpful, don't even post something that is malicious... just move on. Every forum of any kind, I always see jerks who says "search the forum... do that first... do this first blah blah blah..."
I don't wanna start flame war here... just be nice to fellow users... that's all :)
Posted 1 year ago # -
@bambamyi a little hypocritical there with your thoughts no? Telling others not to post if it isn't nice and your first post is going off on someone asking what's stuck up their behind?
Either way Verisuthas post was dead on and I am with Verisutha and chrisco on this. I've witnessed too many forums turn to crap because they get flooded with "how do I make <____>" without any prior effort in the user who is asking end. How can I make such a bold statement? Well when you can easily google.com or use the SPIFFY SEARCH box on the site and find solutions to the question at hand, that's when you know people are too lazy and want things given to them.
Such attitudes are harsh but I believe it's needed at times to keep the masses from making 34098 post a day "can someone help me make <game> I have an awesome idea!" or "how do I make <__something that can be found if you took 5 seconds to search__>. http://www.gamedev.net went through this phase a few times and I got sick of looking at the forums and seeing them plagued with "give me give me give me!" posts vs something constructive.
Posted 1 year ago # -
Not sure this compares to Fruit Ninja, but in our game Cave Run we made a function that handles the earthquake and it looks like this.
-(void) earthquake { int distance = [[CaveRun sharedSingleton] isDevicePad] ? 15 : 7; [[AudioManager sharedEngine] playEffect:@"quake.wav"]; [gameplayNode runAction:[CCRepeat actionWithAction: [CCSequence actions:[CCMoveBy actionWithDuration:0.075 position:ccp(-distance,0)],[CCMoveBy actionWithDuration:0.075 position:ccp(distance,0)],nil] times:20]]; [background startDebris]; }Posted 1 year ago # -
right... Verisuthas might be... but I still think he was being a jerk and I just responded to him. If bluntly calling out for help in the forum is looked down on by you guys, I look down on jerks who think they are hotshots and telling other people practically lazy bums for asking help. I will repeat this once more... if you can't or will not help just move on... instead of being a$$hats. lol I am scared to post for help now...
Posted 1 year ago # -
bambamyi, the problem is that you prejudged Verisutha's post, so you come off looking way worse than him. He WAS helpful, he showed how to find animation posts, and asked for more details so he could provide better help to the poster. I'm 100% with you that posts where the user just says "google it" or "search first" are annoying, but that's not what happened here.
Posted 1 year ago # -
@Matt Rix,
Guess it comes down to what is more annoying? Having forums plagued with "how do I make game_effect_01? [end post]" and that's it which was already answered and questioned several times before, or having replies to said posts with "google it" or "search for it."
Poster in question, imo, should show some form of effort on their end that displays they at least attempted the question they are asking. But again that's just my view on it.
Posted 1 year ago # -
@bambamyi - have you read Riq's recent post on this topic? http://www.cocos2d-iphone.org/forum/topic/8987
Or maybe the "Read Before Posting" thread?
Verisutha was actually doing us a favour by reiterating the forum guidelines and I thought he did it in a polite and helpful manner.
Posting on the forum is a privilege not a right. People should show respect to forum by at least bothering to do a search and trying to provide as much information as possible.
Posted 1 year ago #
Topic Closed
This topic has been closed to new replies.