FAQ  •  Register  •  Login

Zap DANCER

<<

Fordcars

User avatar

Posts: 1016

Joined: Fri Apr 20, 2012 3:51 pm

Location: Some city, somewhere

Post Fri Mar 22, 2013 7:28 pm

Zap DANCER

YEAH! I finally finished this thing! Well, it took me a couple of hours :P

So yeah, I just made a Zap Dancing bot :zapdance:

UPDATE: Works in 019

  Code:
---------ZAPDANCER
---------by fordcars
function getName() -- Called once
    return("Zapdancer")
end

function main() -- This is the first code ran, after loose code
    botAng = 4.7 -- 4.7 is straight up (I think)
    bot:setAngle(botAng)
    rotright = true
end

function onTick()
    if(rotright == true) then
        botAng = botAng + 0.1 -- Rotate variable
        bot:setAngle(botAng) -- Set bot at the right angle
        local angofbot = bot:getAngle() -- Angle of the bot
        if(angofbot >= 5.5) then
            rotright = false
        end
    end

    if(rotright == false) then
        botAng = botAng - 0.1  -- Rotate variable
        bot:setAngle(botAng) -- Set bot at the right angle
        local angofbot = bot:getAngle() -- Angle of the bot
        if(angofbot <= 4) then
            rotright = true
        end
    end
end


I want feedback :evil:
Last edited by Fordcars on Wed Sep 24, 2014 2:55 pm, edited 2 times in total.
skybax: Why is this health pack following me?
bobdaduck: uh, it likes you.
<<

Fordcars

User avatar

Posts: 1016

Joined: Fri Apr 20, 2012 3:51 pm

Location: Some city, somewhere

Post Fri Mar 22, 2013 8:00 pm

Re: Zap DANCER

This was kinda a test, though
skybax: Why is this health pack following me?
bobdaduck: uh, it likes you.
<<

bobdaduck

User avatar

Global Moderator

Posts: 790

Joined: Thu Mar 11, 2010 1:39 pm

Location: Utah

Post Sat Mar 23, 2013 12:43 am

Re: Zap DANCER

Hee hee

That's awesome.

Alas, the port flames don't go off when its turning.

Still adding this to all of my robot folders.
Little_Apple wrote:DnD: the REAL bitfighter levelgen documentation

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

Fordcars

User avatar

Posts: 1016

Joined: Fri Apr 20, 2012 3:51 pm

Location: Some city, somewhere

Post Sat Mar 23, 2013 9:43 am

Re: Zap DANCER

Yeah, the flames do come out but only a fraction of a frame so we don't see it :(

Thanks!
skybax: Why is this health pack following me?
bobdaduck: uh, it likes you.
<<

destroyerimo

Posts: 4

Joined: Sat Nov 02, 2013 5:20 pm

Post Sat Nov 09, 2013 5:29 am

Re: Zap DANCER

your a GENIUS! :D
<<

Fordcars

User avatar

Posts: 1016

Joined: Fri Apr 20, 2012 3:51 pm

Location: Some city, somewhere

Post Sat Nov 09, 2013 1:02 pm

Re: Zap DANCER

Haha thanks!!
skybax: Why is this health pack following me?
bobdaduck: uh, it likes you.
<<

Fordcars

User avatar

Posts: 1016

Joined: Fri Apr 20, 2012 3:51 pm

Location: Some city, somewhere

Post Tue Dec 24, 2013 4:49 pm

Re: Zap DANCER

Updated for 019 :)
skybax: Why is this health pack following me?
bobdaduck: uh, it likes you.
<<

bobdaduck

User avatar

Global Moderator

Posts: 790

Joined: Thu Mar 11, 2010 1:39 pm

Location: Utah

Post Tue Dec 24, 2013 11:25 pm

Re: Zap DANCER

Fordcars wrote:Updated for 019 :)

Nothing could be more important.
Little_Apple wrote:DnD: the REAL bitfighter levelgen documentation

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

Fordcars

User avatar

Posts: 1016

Joined: Fri Apr 20, 2012 3:51 pm

Location: Some city, somewhere

Post Thu Dec 26, 2013 10:49 am

Re: Zap DANCER

Exactly what I was thinking. Great minds think alike!
skybax: Why is this health pack following me?
bobdaduck: uh, it likes you.
<<

amgine

Posts: 1399

Joined: Thu Apr 19, 2012 2:57 pm

Post Tue Jan 07, 2014 2:37 pm

Re: Zap DANCER

Lol 42 version updates later.
Bitfighter Forever.

Return to Bots

Who is online

Users browsing this forum: No registered users and 1 guest

cron