FAQ  •  Register  •  Login

EnergyItem

<<

sky_lark

User avatar

Posts: 2053

Joined: Wed Mar 10, 2010 6:00 pm

Post Thu Feb 06, 2014 4:02 pm

EnergyItem

Will this be making an official foray into the game anytime soon? I've found opportunities to use it in pretty much every map I've made and think it has some really great advantages. First Aid items have their uses but sometimes what players really just need is energy. Would love to have this added to the toolbar so I didn't have to keep writing it into the map file!

That and teleporter delays - arguably the single most underrated and underused feature I've come across - but I suppose those are more experimental.
Follow Bitfighter! FacebookTwitterDiscord
<<

Quartz

User avatar

Posts: 901

Joined: Thu Jun 17, 2010 12:14 am

Location: Texas

Post Thu Feb 06, 2014 4:23 pm

Re: EnergyItem

sky_lark wrote:Will this be making an official foray into the game anytime soon? I've found opportunities to use it in pretty much every map I've made and think it has some really great advantages. First Aid items have their uses but sometimes what players really just need is energy. Would love to have this added to the toolbar so I didn't have to keep writing it into the map file!

That and teleporter delays - arguably the single most underrated and underused feature I've come across - but I suppose those are more experimental.

Teleporter delays FTW man!
Exploits of Quartz and bobdaduck - Pleiades Maps
19-year-old Quartz mad about lawn removal
raptor wrote:sometimes I think getting Quartz to use plugins is like getting my mom to use a computer
<<

Skybax

User avatar

Posts: 1035

Joined: Thu Mar 11, 2010 9:17 am

Location: Washington

Post Thu Feb 06, 2014 5:42 pm

Re: EnergyItem

Telaporter delays should be extended to include spawn delays.
Like, I want to be able to make it so a certain teleporter won't even appear for x amount of seconds.

I know this could be done with a levelgen though so I'm also going to ask that someone make something like that in their spare time >.>
raptor wrote:Sorry Skybax, I hijacked your signature so I could post lots of info.
Whittling While wrote:Does this mean I finally get quoted in someone's signature?
watusimoto wrote:Who are the devs around here?!?
<<

Fordcars

User avatar

Posts: 1016

Joined: Fri Apr 20, 2012 3:51 pm

Location: Some city, somewhere

Post Thu Feb 06, 2014 6:09 pm

Re: EnergyItem

Teleporter delay is spawn delay :O
skybax: Why is this health pack following me?
bobdaduck: uh, it likes you.
<<

Skybax

User avatar

Posts: 1035

Joined: Thu Mar 11, 2010 9:17 am

Location: Washington

Post Thu Feb 06, 2014 6:14 pm

Re: EnergyItem

Only after someone goes in it, though, right?

I want it to not even show up in level (like it doesn't exist) for a certain amount of time.

And be able to disappear without someone going in it.
raptor wrote:Sorry Skybax, I hijacked your signature so I could post lots of info.
Whittling While wrote:Does this mean I finally get quoted in someone's signature?
watusimoto wrote:Who are the devs around here?!?
<<

Fordcars

User avatar

Posts: 1016

Joined: Fri Apr 20, 2012 3:51 pm

Location: Some city, somewhere

Post Thu Feb 06, 2014 7:15 pm

Re: EnergyItem

Ahh ok, yeah levelgen is what you want :P
skybax: Why is this health pack following me?
bobdaduck: uh, it likes you.
<<

watusimoto

Site Admin

Posts: 1558

Joined: Tue Feb 23, 2010 7:07 pm

Location: Quartz's mom's house

Post Fri Feb 07, 2014 7:10 am

Re: EnergyItem

That's really easy with a levelgen... set a timer that launches a line of code to create the teleport, and another that will destroy it later.
<<

Skybax

User avatar

Posts: 1035

Joined: Thu Mar 11, 2010 9:17 am

Location: Washington

Post Fri Feb 07, 2014 5:38 pm

Re: EnergyItem

I know it's possible with a levelgen I just have no knowledge of lua or timers :D
raptor wrote:Sorry Skybax, I hijacked your signature so I could post lots of info.
Whittling While wrote:Does this mean I finally get quoted in someone's signature?
watusimoto wrote:Who are the devs around here?!?
<<

bobdaduck

User avatar

Global Moderator

Posts: 790

Joined: Thu Mar 11, 2010 1:39 pm

Location: Utah

Post Sat Feb 08, 2014 9:58 am

Re: EnergyItem

Something like this: (coding from my phoone this may not run)

tele = nil --variable to hold the teleporter
teleStart = point.new(0, 0)
teleEnd = point.new(100, 100)

function removeTele()
tele:removeFromGame()
end

function spawnTele()
tele = Teleporter.new()
tele:setGeom(teleStart, teleEnd)
bf:addItem(tele)
end

function main()
Timer.scheduleOnce(spawnTele, 5000) --5000 millisec
Timer:scheduleOnce(removeTele, 10000)
end
Little_Apple wrote:DnD: the REAL bitfighter levelgen documentation

Santiago ZAP wrote:bob doesn't make new maps, he makes new gamemodes
<<

watusimoto

Site Admin

Posts: 1558

Joined: Tue Feb 23, 2010 7:07 pm

Location: Quartz's mom's house

Post Mon Feb 10, 2014 6:02 am

Re: EnergyItem

This whole thing could probably be compressed into just 4 lines of code, but it is much more readable this way!

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 16 guests