Page 1 of 1

How do you make airship cannons shoot 45°?

Posted: Tue Jul 22, 2014 8:15 am
by HeroLinik
Look at this video, it shows the airship cannon being shot at a 45° angle at the player.



This was also done in Fearsome Flagship in Super Mario Star Expedition, and I want to try it for an airship level for the upcoming TGCA remake. However, I don't know how to make the airship cannon shoot at that angle. I've seen some tutorials but they cause the cannonballs to fly at 60°, not 45°, which looks odd.

How do you get the airship cannon to shoot at 45°, like in SMB3's airships?

Re: How do you make airship cannons shoot 45°?

Posted: Tue Jul 22, 2014 8:41 am
by DimitrisPowerSeven
like this Imagethere is inSKL - Mario Classic Adventyre

Re: How do you make airship cannons shoot 45°?

Posted: Tue Jul 22, 2014 8:55 am
by RudeGuy
I guess you can do this:

-Make a layer and put in that layer the cannonball generator;
-Make an event and under "layer movement" put the layer of the cannonball. Then set the speed (I don't know the speed, sorry).
-Select the cannonball generator, go in the NPC events and under activate put the event.

Re: How do you make airship cannons shoot 45°?

Posted: Tue Jul 22, 2014 9:04 am
by DimitrisPowerSeven
you don't need layers you just put a invisible platform in off make it the player can't stand on it put it close to cannonball generator and make the cannonball have nogravity=1 then will be like in smb3

Re: How do you make airship cannons shoot 45°?

Posted: Tue Jul 22, 2014 9:20 am
by HeroLinik
DimitrisPowerSeven wrote:you don't need layers you just put a invisible platform in off make it the player can't stand on it put it close to cannonball generator and make the cannonball have nogravity=1 then will be like in smb3
If the player can't stand on it then they'll just bounce on and off it. I tried it with a platform in which the player can't jump on it and that resulted. I don't want Mario to bounce off the cannonball, I want it to damage him.

Re: How do you make airship cannons shoot 45°?

Posted: Tue Jul 22, 2014 9:26 am
by DimitrisPowerSeven
then put jumphurt=1 to cannonball ?

Re: How do you make airship cannons shoot 45°?

Posted: Tue Jul 22, 2014 11:20 am
by FanofSMBX
castlewars wrote:
DimitrisPowerSeven wrote:you don't need layers you just put a invisible platform in off make it the player can't stand on it put it close to cannonball generator and make the cannonball have nogravity=1 then will be like in smb3
If the player can't stand on it then they'll just bounce on and off it. I tried it with a platform in which the player can't jump on it and that resulted. I don't want Mario to bounce off the cannonball, I want it to damage him.
You want it to? Didn't they die in SMB3?

Re: How do you make airship cannons shoot 45°?

Posted: Tue Jul 22, 2014 11:56 am
by HeroLinik
FanofSMBX wrote:
castlewars wrote:
DimitrisPowerSeven wrote:you don't need layers you just put a invisible platform in off make it the player can't stand on it put it close to cannonball generator and make the cannonball have nogravity=1 then will be like in smb3
If the player can't stand on it then they'll just bounce on and off it. I tried it with a platform in which the player can't jump on it and that resulted. I don't want Mario to bounce off the cannonball, I want it to damage him.
You want it to? Didn't they die in SMB3?
If I had them replace the platforms I can't make them stompable. The player will just bounce on and off them.

Re: How do you make airship cannons shoot 45°?

Posted: Tue Jul 22, 2014 12:00 pm
by DimitrisPowerSeven
can i give you the level in the screenshot?

Re: How do you make airship cannons shoot 45°?

Posted: Tue Jul 22, 2014 12:57 pm
by HeroLinik
DimitrisPowerSeven wrote:can i give you the level in the screenshot?
Yeah. I want to see how it's done without having to open up Fearsome Flagship and seeing all the complicated event chains.

Re: How do you make airship cannons shoot 45°?

Posted: Tue Jul 22, 2014 1:08 pm
by DimitrisPowerSeven

Re: How do you make airship cannons shoot 45°?

Posted: Wed Jul 23, 2014 8:57 am
by HeroLinik
Thanks Dmitri, that helped quite a lot and now I can set up the airship cannons. However, the npc-60 that makes the cannonball go at a 45° angle doesn't move if it's set on a moving layer, and the airship that I'm making moves up and down. I tried attaching it to the airship layer (which is the Default layer as the whole airship moves up and down) but it didn't work, and it causes the cannonballs to generate out of synch with the NPC. How do I make the npc-60 move with the airship?

Re: How do you make airship cannons shoot 45°?

Posted: Wed Jul 23, 2014 9:15 am
by DimitrisPowerSeven
i test it now with npc 58 and I removed nogravity and it works

Re: How do you make airship cannons shoot 45°?

Posted: Wed Jul 23, 2014 9:30 am
by HeroLinik
DimitrisPowerSeven wrote:i test it now with npc 58 and I removed nogravity and it works
How? I don't get what you're saying. Send me a level with a moving layer and a working airship cannon so I can see what you did.

Re: How do you make airship cannons shoot 45°?

Posted: Wed Jul 23, 2014 10:06 am
by litchh
castlewars wrote:Thanks Dmitri, that helped quite a lot and now I can set up the airship cannons. However, the npc-60 that makes the cannonball go at a 45° angle doesn't move if it's set on a moving layer, and the airship that I'm making moves up and down. I tried attaching it to the airship layer (which is the Default layer as the whole airship moves up and down) but it didn't work, and it causes the cannonballs to generate out of synch with the NPC. How do I make the npc-60 move with the airship?

You can't use this gimmick close to moving layers. This also doesn't work with noblockcollision=1, so you have use that cannons only on the open spaces above them. Sorry.

Re: How do you make airship cannons shoot 45°?

Posted: Wed Jul 23, 2014 10:08 am
by DimitrisPowerSeven
i just change npc 60 with npc 58 and remove nogavity=1 here is that i made http://www.mediafire.com/download/uu8lx ... test_2.zip also litchh made the cannonball