How do you make airship cannons shoot 45°?

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

HeroLinik
Boom Boom
Boom Boom
Posts: 3462
Joined: Fri Dec 20, 2013 1:28 pm
Contact:

How do you make airship cannons shoot 45°?

Postby HeroLinik » Tue Jul 22, 2014 8:15 am

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?

DimitrisPowerSeven
Volcano Lotus
Volcano Lotus
Posts: 519
Joined: Sun Apr 06, 2014 8:56 am

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

Postby DimitrisPowerSeven » Tue Jul 22, 2014 8:41 am

like this Imagethere is inSKL - Mario Classic Adventyre

RudeGuy
Fry Guy
Fry Guy
Posts: 4994
Joined: Fri Dec 27, 2013 7:36 am
Flair: local guy

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

Postby RudeGuy » Tue Jul 22, 2014 8:55 am

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.

DimitrisPowerSeven
Volcano Lotus
Volcano Lotus
Posts: 519
Joined: Sun Apr 06, 2014 8:56 am

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

Postby DimitrisPowerSeven » Tue Jul 22, 2014 9:04 am

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

HeroLinik
Boom Boom
Boom Boom
Posts: 3462
Joined: Fri Dec 20, 2013 1:28 pm
Contact:

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

Postby HeroLinik » Tue Jul 22, 2014 9:20 am

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.

DimitrisPowerSeven
Volcano Lotus
Volcano Lotus
Posts: 519
Joined: Sun Apr 06, 2014 8:56 am

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

Postby DimitrisPowerSeven » Tue Jul 22, 2014 9:26 am

then put jumphurt=1 to cannonball ?

FanofSMBX
Mouser
Mouser
Posts: 3878
Joined: Sun Dec 22, 2013 12:01 pm

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

Postby FanofSMBX » Tue Jul 22, 2014 11:20 am

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?

HeroLinik
Boom Boom
Boom Boom
Posts: 3462
Joined: Fri Dec 20, 2013 1:28 pm
Contact:

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

Postby HeroLinik » Tue Jul 22, 2014 11:56 am

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.

DimitrisPowerSeven
Volcano Lotus
Volcano Lotus
Posts: 519
Joined: Sun Apr 06, 2014 8:56 am

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

Postby DimitrisPowerSeven » Tue Jul 22, 2014 12:00 pm

can i give you the level in the screenshot?

HeroLinik
Boom Boom
Boom Boom
Posts: 3462
Joined: Fri Dec 20, 2013 1:28 pm
Contact:

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

Postby HeroLinik » Tue Jul 22, 2014 12:57 pm

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.

DimitrisPowerSeven
Volcano Lotus
Volcano Lotus
Posts: 519
Joined: Sun Apr 06, 2014 8:56 am

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

Postby DimitrisPowerSeven » Tue Jul 22, 2014 1:08 pm


HeroLinik
Boom Boom
Boom Boom
Posts: 3462
Joined: Fri Dec 20, 2013 1:28 pm
Contact:

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

Postby HeroLinik » Wed Jul 23, 2014 8:57 am

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?

DimitrisPowerSeven
Volcano Lotus
Volcano Lotus
Posts: 519
Joined: Sun Apr 06, 2014 8:56 am

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

Postby DimitrisPowerSeven » Wed Jul 23, 2014 9:15 am

i test it now with npc 58 and I removed nogravity and it works

HeroLinik
Boom Boom
Boom Boom
Posts: 3462
Joined: Fri Dec 20, 2013 1:28 pm
Contact:

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

Postby HeroLinik » Wed Jul 23, 2014 9:30 am

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.

litchh
Eerie
Eerie
Posts: 719
Joined: Sun Dec 29, 2013 6:10 am

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

Postby litchh » Wed Jul 23, 2014 10:06 am

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.

DimitrisPowerSeven
Volcano Lotus
Volcano Lotus
Posts: 519
Joined: Sun Apr 06, 2014 8:56 am

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

Postby DimitrisPowerSeven » Wed Jul 23, 2014 10:08 am

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


Return to “Help and Support”

Who is online

Users browsing this forum: Semrush [Bot] and 3 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari