Streaming game development: https://www.twitch.tv/stabyourself Image

How i make a Powerup for mari0 se?

Mods, guides how to use and install mods go right in here.
JohnHOne
User avatar
Posts: 347
Joined: 13 Jul 2014, 23:55
Reputation: 8

Post » 20 Nov 2014, 20:00

how i make a powerup in mari0 se by modding?
Last edited by JohnHOne on 21 Nov 2014, 01:33, edited 3 times in total.

JohnHOne
User avatar
Posts: 347
Joined: 13 Jul 2014, 23:55
Reputation: 8

Post » 20 Nov 2014, 21:12

It mean,nobody want to help me :,(

JohnHOne
User avatar
Posts: 347
Joined: 13 Jul 2014, 23:55
Reputation: 8

Post » 20 Nov 2014, 22:14

Oh,everyone ignore me.....
HELP ME NOW

Squidish
User avatar
Posts: 806
Joined: 05 Apr 2014, 04:04
Reputation: 214
Contact:

Post » 20 Nov 2014, 22:35

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.

JohnHOne
User avatar
Posts: 347
Joined: 13 Jul 2014, 23:55
Reputation: 8

Post » 20 Nov 2014, 23:00

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

Squidish
User avatar
Posts: 806
Joined: 05 Apr 2014, 04:04
Reputation: 214
Contact:

Post » 20 Nov 2014, 23:04

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.

JohnHOne
User avatar
Posts: 347
Joined: 13 Jul 2014, 23:55
Reputation: 8

Post » 20 Nov 2014, 23:10

I'm ignoring now PrincessKiller
Play my UGLY edition of Mari0 SE
viewtopic.php?f=13&t=4524&p=112183#p112183

Superjustinbros
User avatar
Posts: 2101
Joined: 29 Mar 2012, 20:39
Reputation: 132
Contact:

Post » 20 Nov 2014, 23:22

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.

JohnHOne
User avatar
Posts: 347
Joined: 13 Jul 2014, 23:55
Reputation: 8

Post » 20 Nov 2014, 23:51

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)

alesan99
User avatar
Posts: 1662
Joined: 30 May 2013, 21:42
Reputation: 300
Contact:

Post » 21 Nov 2014, 00:24

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

MM102
User avatar
Posts: 1015
Joined: 11 May 2012, 06:08
Reputation: 498

Post » 21 Nov 2014, 00:38


JohnHOne
User avatar
Posts: 347
Joined: 13 Jul 2014, 23:55
Reputation: 8

Post » 21 Nov 2014, 01:31

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

Firaga
User avatar
Posts: 944
Joined: 02 Jul 2012, 16:05
Reputation: 118
Contact:

Post » 21 Nov 2014, 01:43

Maybe if you actually read the fucking error you'd see your mistake.

JohnHOne
User avatar
Posts: 347
Joined: 13 Jul 2014, 23:55
Reputation: 8

Post » 21 Nov 2014, 02:46

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

alesan99
User avatar
Posts: 1662
Joined: 30 May 2013, 21:42
Reputation: 300
Contact:

Post » 21 Nov 2014, 03:15

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

Sašo
Stabyourself.net
User avatar
Posts: 1385
Joined: 06 Jan 2012, 12:07
Reputation: 336
Contact:

Post » 21 Nov 2014, 11:25

Normally I'd lock this but I'll leave it since there's actual stuff being done.

TurretBot
User avatar
Posts: 4645
Joined: 15 Mar 2012, 23:18
Reputation: 718
Contact:

Post » 03 Jan 2017, 20:42

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


Return to “Modding”

Who is online

Users browsing this forum: No registered users and 4 guests

cron