PDA

View Full Version : interactive budy scripts


Blixinator
04-17-2005, 04:29 PM
post your custom IB scripts here
BTW can someone make one where fire is shot at him then he is put out then set on fire again and over and over again?

rich_man298
04-17-2005, 05:57 PM
I really need help with any cuz i do not know action scripts!

MooMoo3
04-18-2005, 05:08 PM
Mine is called "Fire Buddy" and makes him have a trail of fire follow him...
Since I'm not very fluent with Flash, It's pretty simple:

create("molotov",getBuddyX(),getBuddyY(),getBuddyX()Velocity,getBu ddyY()Velecity);

Blixinator
04-18-2005, 05:40 PM
can someone make one that has the flamethrower and firehose locked on him?

MooMoo3
04-18-2005, 06:43 PM
Hmm...I'll see if I can

MooMoo3
04-18-2005, 06:54 PM
Nah my computer keeps freezing too much from ActionScript...

viper565
04-20-2005, 07:24 PM
Now this is a good topic

Dr. Avery
04-22-2005, 02:37 AM
Does anyone have a list of which variables are predefined by the engine?

Is there an FAQ somewhere?

ben4
04-30-2005, 11:58 PM
yea they should make a faq

albigafatony
05-05-2005, 03:33 PM
i could probably think of an actionscript but i dunno if i can be bothered. I might do 1 later

dtrmnd2wn
05-07-2005, 01:24 PM
I made some scripts a while back from combinations of examples... One of my favorites was one where either he was getting shot by bowling balls or being struck by lightning.

Name: Bowling Lightning
Operation: Nothing for bowling balls, hold left-click for lightning.
t=t+1;
if(bnot(t%4),create("bowlball",50+random()*10,getBuddyY()+random()*20-10,50,-3-getBuddyX()*.01),0);
if(getMouseDown() && bnot(oMouse),
assign(rr,random()*100)+
assign(n,0)+
assign(t,25)+
loop(t,shock(getXMouse()+sin(n/t*10+rr)*15,n/t*400)+assign(n,n+1)
,0);
oMouse = getMouseUp()


Name: Lightning Explosion
Operation: Hold left-click for lightning, push to wall to explode.
gx = getBuddyX();
test = gx>510||gx<40;
if(test,explode(gx+random()-.5,getBuddyY(),.15),0);
if(getMouseDown() && bnot(oMouse),
assign(rr,random()*100)+
assign(n,0)+
assign(t,25)+
loop(t,shock(getXMouse()+sin(n/t*10+rr)*15,n/t*400)+assign(n,n+1)
,0);
oMouse = getMouseUp()

Name: Spinning Levitate
Operation: None.
addBuddyVel((275-getBuddyX())*.075,(200-getBuddyY())*.075);
addBuddyRot(sign(getXV("body"))*200)

Jherry
05-07-2005, 03:09 PM
I've got a few, here are my favorites:

posessedBuddy
i=i+1;
say("DEMONIC LAUGH", 100);
if(equal(i%25, 0), addBuddyVel(randomBet(-100, 100), randomBet(-100, 100)));

makes him fly randomly around the screen demonically laughing. It's really quite amusing, especially because the only way to stop him is to stop the script, knocking him out wont stop him :)


flyWhenHappy
i=i+1;
if(equal(i%50, 0), say("My happiness is
" + getEmotion(),100));
addBuddyVel(0, 0-getEmotion()/25);

makes him extremely light when he's happy, and heavier when he's sad. He announces his happiness level every few seconds, after +25, he sarts to gravitate toward the ceiling.


zeroGravBuddy
addBuddyVel(0, -1);
kinda boring after a while. The buddy is completely unaffected by gravity. Everything else is, though.

Jherry
05-08-2005, 08:33 AM
Here is the answer to MC's request.
igniteAndDrench
i=i+1;
if(equal(i%150, 0), loop(5, water(0, getBuddyY(), 100, 0, 100, .1, 40, 100, false)));
if(equal(i%100, 0), create("fireball", getBuddyX(), getBuddyY(), 0, 0));
ignites him with a fireball, and periodically put him out with a large blast of water. once put out, he ignites again.

Blixinator
05-08-2005, 01:21 PM
Thank you very much I lo...
wait no I dont.

Blastedt
05-14-2005, 04:01 PM
can someone make a code to make him happy?

O0oKk
05-20-2005, 08:09 PM
yall are so cool.. how do you make this stuff?

CrazyJay
09-30-2007, 05:14 PM
This one gets you money suer fast, but it makes your buddy sad any way here it is water(300, 200, 60, 50, 100, 50, 20, 10, disappearOnContact)

Bow Chicka Bow Wow
10-12-2007, 10:39 PM
I need a code to get him happy please!

like blastedT