[HELP] Stuff with Bullettime
Hello. I need help with this, because I have no knowledge of coding.
What I want to do is something like this:
...but a little slower than that.
It's for a mod I'm working on.
What I want to do is something like this:
...but a little slower than that.
It's for a mod I'm working on.
-
- Posts: 524
- Joined: 02 Jun 2012, 03:40
Pulsating bullettime?
Last edited by HAPPYFACES on 18 Mar 2013, 23:57, edited 1 time in total.
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...
-
- Posts: 524
- Joined: 02 Jun 2012, 03:40
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)
Yes. And sometimes it happens to the flow of the music or something.
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] )
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.
-
- Posts: 524
- Joined: 02 Jun 2012, 03:40
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.
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.
- Legend_of_Kirby
- Posts: 752
- Joined: 14 Oct 2012, 05:37
- Contact:
The Coders/Helpers of Stabyourself.net:
Camewel, HAPPYFACES, Turtle, Hat Ninja, Rokit Boy, Maurice (duh) and QCODE, bobthelawyer and pbalazs
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.
...
Last edited by Qcode on 21 Oct 2021, 17:18, edited 1 time in total.
- BobTheLawyer
- Posts: 2232
- Joined: 01 May 2012, 21:00
I'm depressed now.Legend_of_Kirby wrote:The Coders/Helpers of Stabyourself.net:
Camewel, HAPPYFACES, Turtle, Hat Ninja, Rokit Boy, Maurice (duh) and QCODE.
...Legend_of_Kirby wrote: Hat Ninja
well anyways its true, i would help anyone
- Superjustinbros
- Posts: 2119
- Joined: 29 Mar 2012, 20:39
- Contact:
The "Helpers" part is a bit misleading, if you ask me, since not everyone above actually does help with mods/group projects.Legend_of_Kirby wrote:The Coders/Helpers of Stabyourself.net:
Camewel, HAPPYFACES, Turtle, Hat Ninja, Rokit Boy, Maurice (duh) and QCODE, bobthelawyer and pbalazs
...
Last edited by Qcode on 21 Oct 2021, 17:18, edited 1 time in total.