Page 1 of 1

How i make a Powerup for mari0 se?

Posted: 20 Nov 2014, 20:00
by JohnHOne
how i make a powerup in mari0 se by modding?

Re: [I Want Help!]How i make a Powerup for modded mari0 se

Posted: 20 Nov 2014, 21:12
by JohnHOne
It mean,nobody want to help me :,(

Re: [I Want Help!]How i make a Powerup for modded mari0 se

Posted: 20 Nov 2014, 22:14
by JohnHOne
Oh,everyone ignore me.....
HELP ME NOW

Re: [I Want Help!]How i make a Powerup for modded mari0 se

Posted: 20 Nov 2014, 22:35
by Squidish
First off, we get you want help. You're posting on EVERY DAMN THREAD, REPETITIVELY, and it's VERY annoying, which is probably why nobody wants to help you. Second, If you want to know how to make a powerup in se, It's not a good Idea to call the topic [I Want Help!]. Third, to answer your question, I don't know anyone who's made a powerup in SE, but it's possible, depending on the ability. BUT, because of all your stupid ass comments and I NEED HELP!s, I say good luck finding somebody to help you.

EDIT: Also, Lock the thread.

Re: [I Want Help!]How i make a Powerup for modded mari0 se

Posted: 20 Nov 2014, 23:00
by JohnHOne
PrincessKiller wrote: EDIT: Also, Lock the thread.
PrincessKiller wrote: EDIT: Also, Lock the thread.
PrincessKiller wrote: EDIT: Also, Lock the thread.
you made me annoyned and angered,i no longer i will add a super awesome powerup at my mod >:( just because of you
edit:oh,i know the reason,because everybody want to make me accidentally bump at every topic that i say help

Re: [I Want Help!]How i make a Powerup for modded mari0 se

Posted: 20 Nov 2014, 23:04
by Squidish
I'm sure a lot of people would agree you are being very annoying, and you're blaming me for it. That makes you look even stupider.

Lock the thread, please.

Re: [I Want Help!]How i make a Powerup for modded mari0 se

Posted: 20 Nov 2014, 23:10
by JohnHOne
I'm ignoring now PrincessKiller
Play my UGLY edition of Mari0 SE
viewtopic.php?f=13&t=4524&p=112183#p112183

Re: [I Want Help!]How i make a Powerup for modded mari0 se

Posted: 20 Nov 2014, 23:22
by Superjustinbros
Okay. John, why don't you explain what type of powerup(s) you wanted, and maybe someone can provide you with something and this topic doesn't erupt in a flamewar.

Re: [I Want Help!]How i make a Powerup for modded mari0 se

Posted: 20 Nov 2014, 23:51
by JohnHOne
Superjustinbros wrote:Okay. John, why don't you explain what type of powerup(s) you wanted.
The powerup wil give a ability to inhale enemies by pressing "F",then you can spit the enemy,or swallow it(giving a ability of the enemy)

Re: [I Want Help!]How i make a Stupid dumb Powerup for mari0

Posted: 21 Nov 2014, 00:24
by alesan99
I've seen you do this before, but please don't spam help. It just makes less people want to help you.

First, there is not custom power up system in the game so you have to program it in, and to do that you need some lua experience.
Look at mario.lua and go to mario:update. Make it check if "f" is being held (I'd recommend you use the run button instead so you can change it in the options) then make it activate a suck function. It should change enemies speed towards the player. If they collide then make it check what type of enemy it is and then make the abilities.
NOTE: Code is just an example of how it should look like

Code: Select all

function mario:update(dt)
   if self.size == suckin end --change to the id of the powerup
      if isDown("f") then
         self:suckin()
      end
   end
end

function mario:suckin()
   for i, obj in pairs(objects) do
      obj.speed = towards self.position
   end
end

function mario:collide(obj)
   if isDown("f") then
       self.form = obj.type
   end
end

Re: [I Want Help!]How i make a Stupid dumb Powerup for mari0

Posted: 21 Nov 2014, 00:38
by MM102

Re: [I Want Help!]How i make a Powerup for mari0 se

Posted: 21 Nov 2014, 01:31
by JohnHOne
Made the inhale system but it crashes

Code: Select all

--Kirby's Inhale
	if self.size == kirby end --change to the id of the powerup
      if isDown("f") then
         self:kirby()
      end
   end
end

function mario:kirby()
   for i, hammerbros in pairs(objects) do
      1.00 = towards self.position
   end
end
end

function mario:kirby()
   for i, hammer in pairs(objects) do
      1.00 = towards self.position
   end
end
end

function mario:collide(hammerbros)
   if isDown("f") then
       self.form = hammer
   end
end

function mario:collide(hammer)
   if isDown("f") then
       self.form = hammer
   end
end
the crash:
Image

Re: How i make a Powerup for mari0 se?

Posted: 21 Nov 2014, 01:43
by Firaga
Maybe if you actually read the fucking error you'd see your mistake.

Re: How i make a Powerup for mari0 se?

Posted: 21 Nov 2014, 02:46
by JohnHOne
I Fixed,i have another crash

Code: Select all

--Kirby's Inhale
	if self.size == 4 then
      if isDown("f") then
         self:kirby()
      end
   end
end

function mario:kirby()
   for i, hammerbros in pairs(objects) do
    10 = towards self.position
   end
end
end

function mario:kirby()
   for i, hammer in pairs(objects) do
   10 = towards self.position
   end
end
end

function mario:collide(hammerbros)
   if isDown("f") then
       self.form = hammer
   end
end

function mario:collide(hammer)
   if isDown("f") then
       self.form = hammer
   end
end
The image:
Image

Re: How i make a Powerup for mari0 se?

Posted: 21 Nov 2014, 03:15
by alesan99
It's not working because I just posted an example of how it should look. The code doesn't actually do anything so editing won't do much.
As I said, you have to have at least some basic lua knowledge: http://lua-users.org/wiki/TutorialDirectory

Re: How i make a Powerup for mari0 se?

Posted: 21 Nov 2014, 11:25
by Sašo
Normally I'd lock this but I'll leave it since there's actual stuff being done.

Re: How i make a Powerup for mari0 se?

Posted: 03 Jan 2017, 20:42
by TurretBot
Sašo wrote:Normally I'd lock this but I'll leave it since there's actual stuff being done.
In hindsight this was a bad move