[HELP] Stuff with Bullettime

Mods, guides how to use and install mods go right in here.
Post Reply
User avatar
Vyper
Posts: 155
Joined: 16 Jan 2013, 23:18
Contact:

Post » 18 Mar 2013, 23:44

Hello. I need help with this, because I have no knowledge of coding.
What I want to do is something like this:
Image
...but a little slower than that.
It's for a mod I'm working on.

HAPPYFACES
Posts: 524
Joined: 02 Jun 2012, 03:40

Post » 18 Mar 2013, 23:50

Pulsating bullettime?
Last edited by HAPPYFACES on 18 Mar 2013, 23:57, edited 1 time in total.

User avatar
Vyper
Posts: 155
Joined: 16 Jan 2013, 23:18
Contact:

Post » 18 Mar 2013, 23:54

You know how bullettime makes things slower? Well, what I meant was that it gets slower for a second then it speeds up, then it gets slower again...

HAPPYFACES
Posts: 524
Joined: 02 Jun 2012, 03:40

Post » 18 Mar 2013, 23:58

Hmmm... so something like dynamic bullettime where certain actions are slowed, like jumping, then it speeds back up when you're back on the ground? (< Example)

User avatar
Vyper
Posts: 155
Joined: 16 Jan 2013, 23:18
Contact:

Post » 19 Mar 2013, 00:00

Yes. And sometimes it happens to the flow of the music or something.

Camewel
Posts: 2996
Joined: 02 Feb 2012, 21:32

Post » 19 Mar 2013, 00:06

in love.load()


dtt = 0
omega = [how long you want it to take to go in and out of bullettime]/(2*math.pi)


end

in love.update()


if bullettimepulsate == true then
dtt = dtt + dt
[whatever bullettime variable is] = [min bullettime value] + [max bullettime variable - min bullettime variable]*(1+math.cos(dtt*omega))/2
else
dtt = 0
end


end

Comment out whatever controls bullettime normally.
(note that this is untested and requires you to know where bullettime variables are stored and controlled)
(also note that min means slowest bullettime variable and that if it's bigger that the bullettime variable that does full speed, [max bullettime variable - min bullettime variable] has to become [min bullettime variable - max bullettime variable] )
Last edited by Camewel on 19 Mar 2013, 19:33, edited 1 time in total.

HAPPYFACES
Posts: 524
Joined: 02 Jun 2012, 03:40

Post » 19 Mar 2013, 00:14

Okay, so I don't know a lot about lua, but I think I can tell you what kind of conditions you'll need for these things:

Proximity of an enemy or item.
y coordinates or velocity.
Portal 1 or 2 shot.
Getting hurt (-1 size)

And of course checking if Bullettime is activated.
Probably should start with something along the lines of: "if [marioy = 0, or the ground.] return end."
But eh, might wanna get the more knowledgeable coders on board here.

Camewel
Posts: 2996
Joined: 02 Feb 2012, 21:32

Post » 19 Mar 2013, 00:19

Oh, and a problem you'll have with getting it to go with the music is that bullettime slows down the music.

User avatar
Legend_of_Kirby
Posts: 752
Joined: 14 Oct 2012, 05:37
Contact:

Post » 19 Mar 2013, 02:03

The Coders/Helpers of Stabyourself.net:
Camewel, HAPPYFACES, Turtle, Hat Ninja, Rokit Boy, Maurice (duh) and QCODE, bobthelawyer and pbalazs
Last edited by Legend_of_Kirby on 21 Mar 2013, 00:07, edited 1 time in total.

User avatar
Automatik
Posts: 1073
Joined: 20 Jul 2012, 17:54
Contact:

Post » 19 Mar 2013, 17:40

(And me, And saso)

User avatar
Qcode
Posts: 1479
Joined: 05 Feb 2012, 18:00
Contact:

Post » 19 Mar 2013, 17:47

...
Last edited by Qcode on 21 Oct 2021, 17:18, edited 1 time in total.

User avatar
BobTheLawyer
Posts: 2232
Joined: 01 May 2012, 21:00

Post » 20 Mar 2013, 23:51

Legend_of_Kirby wrote:The Coders/Helpers of Stabyourself.net:
Camewel, HAPPYFACES, Turtle, Hat Ninja, Rokit Boy, Maurice (duh) and QCODE.
I'm depressed now.

User avatar
Hatninja
Posts: 480
Joined: 03 Feb 2012, 18:42
Contact:

Post » 21 Mar 2013, 18:38

Legend_of_Kirby wrote: Hat Ninja
...

well anyways its true, i would help anyone

User avatar
Superjustinbros
Posts: 2119
Joined: 29 Mar 2012, 20:39
Contact:

Post » 21 Mar 2013, 21:46

Legend_of_Kirby wrote:The Coders/Helpers of Stabyourself.net:
Camewel, HAPPYFACES, Turtle, Hat Ninja, Rokit Boy, Maurice (duh) and QCODE, bobthelawyer and pbalazs
The "Helpers" part is a bit misleading, if you ask me, since not everyone above actually does help with mods/group projects.

User avatar
Qcode
Posts: 1479
Joined: 05 Feb 2012, 18:00
Contact:

Post » 21 Mar 2013, 22:12

...
Last edited by Qcode on 21 Oct 2021, 17:18, edited 1 time in total.

Camewel
Posts: 2996
Joined: 02 Feb 2012, 21:32

Post » 21 Mar 2013, 23:32

I think this is the only mod I've helped with unless you count generally abusing Turtle as helping.

Post Reply