avatar for Jimmywa

Jimmywa's profile

Developer_icon Levelbug20

About me

  • Member Since: Jan. 26, 2008
  • Last Login: Dec. 01, 2008
  • Current Points: 2780
  • Comments: 61
  • Age: 23
  • Sex: Male
Latest Achievements
Supplies Party (completed)
Conservative Constructionist (completed)
Friendly Neighborhood Barbecue (completed)
"Only a Flesh Wound" (completed)
Building Blocks (completed)
Ultra Violet (completed)
Small Savings (completed)
Makin' Bank (completed)
New Challenger (completed)
Toddler Tower (completed)
Dragon Chaser (completed)
Bake a Pretty Cake (completed)
Freedom ActionShifting (completed)
Black Hole Son (completed)
Hanna Is My Copilot (completed)
Fist of Fury (completed)
Samurai Jacked (completed)
Ginsu Knife Mastery (completed)
Steel Samurai (completed)
Feudal Feud (completed)
Empyreal Destroyer (completed)
 
Supplies Party (completed)
Supplies Party Badge (easy - 5 points)
Collect a crate of supplies in Mud and Blood 2
Acquired Dec. 01, 2008

Jimmywa's tickets

Shouts & Whispers

Shouts
Whispers
Person Content
avatar for Oki23
Oki23
Nov. 25, 2008

I like your game!

avatar for moomoomoomoo
moomoomoomoo
Nov. 08, 2008

var ball:MovieClip = root.attachMovie(“ball”, “ball”, 2, {x:250, y:100});
var elastic:MovieClip = _root.createEmptyMovieClip(“elastic”, 1);
var point1:MovieClip = _root.attachMovie(“sling”, “point1”, 3, {
x:50, y:200});
var point2:MovieClip = _root.attachMovie(“sling”, “point2”, 4, {
x:450, y:200});
var gravity = 0.1;
var angle1:Number = 0;
var angle2:Number = 0;
var radius:Number = 13.0;
// Or whatever half the width of your ball is.
var elasticCoefficient:Number = 0.001;
// This number will affect the stretchiness of the sling. The greater the number
// the tighter the elastic will be.
var released:Boolean = true;
var forced:Boolean = false;
var acc:Object = {x:0, y:0};
var vel:Object = {x:0, y:0};
_root.onMouseDown = function() {
ball.
x = root.xmouse;
ball.y = _root.ymouse;
ball.startDrag();
root.released = false;
vel.x = 0;
vel.y = 0;
};
_root.onMouseUp = function() {
ball.stopDrag();
_root.released = true;
};
ball.onPress = function() {
ball.startDrag();
_root.released = false;
vel.x = 0;
vel.y = 0;
};
ball.onRelease = function() {
ball.stopDrag();
_root.released = true;
};
_root.onEnterFrame = function() {
elastic.clear();
elastic.lineStyle(3, 0xFF0000);
if (released) {
ball.
x = vel.x;
ball.y += vel.y;
}
if (ball.
y>=187) {
/* This area differs from the code in the tutorial.
The reason for that is I didn’t read the code, I just looked at the examples.
I try to gain experience with problem-solving by doing things as close to by myself as possible. /
forced = true;
var x1:Number = ball.x-point1.x;
var y1:Number = ball.y-point1.y;
var x2:Number = point2.x-ball.x;
var y2:Number = point2.y-ball.y;
var distance1:Number = Math.sqrt(x1
x1
y1*y1);
var distance2:Number = Math.sqrt(x2*x2+y2*y2);
root.angle1 = Math.atan2(y1, x1);
_root.angle2 = Math.atan2(y2, x2);
var xOffset:Number = Math.cos(angle1+Math.PI/2)*radius;
var yOffset:Number = Math.sin(angle1+Math.PI/2)*radius;
var xOffset2:Number = Math.cos(angle2+Math.PI/2)*radius;
var yOffset2:Number = Math.sin(angle2+Math.PI/2)*radius;
angle1 += Math.sin(radius/distance1);
angle2 += Math.sin(radius/distance2)*-1;
elastic.moveTo(point1.
x, point1.y);
elastic.lineTo(ball.
x+xOffset, ball.y+yOffset);
elastic.moveTo(point2.
x, point2.y);
elastic.lineTo(ball.
x+xOffset2, ball.y+yOffset2);
} else {
forced = false;
elastic.moveTo(point1.
x, point1.y);
elastic.lineTo(point2.
x, point2._y);
}
acc.x = 0;
acc.y = 0;
acc.y = gravity;
if (released && forced) {
/* This section applies the force of the sling to the ball in terms of acceleration based on the stretching of
the sling, in the direction of the displacement, scaled by a coefficient that also encapsulates the mass of
the ball. /
acc.x += distance1
Math.sin(angle2)*elasticCoefficient;
acc.y += -distance1*Math.cos(angle1)*elasticCoefficient;
acc.x += distance2*Math.sin(angle1)*elasticCoefficient;
acc.y += -distance2*Math.cos(angle2)*elasticCoefficient;
}
if (released) {
vel.x += acc.x;
vel.y += acc.y;
}
};

avatar for moomoomoomoo
moomoomoomoo
Nov. 07, 2008

onClipEvent (load) {
x00 = x;
y00 = _y;
MAAI = 400;}
onClipEvent (enterFrame) {
x0=
x
y0=y
x=
root.xmouse
y=
root._ymouse
a=x-x0
b=y-y0
r=Math.sqrt(a*a+b*b)

quer_fugir_x=this.x-(a/r)*MAAI/r
quer
fugir_y=this._y-(b/r)*MAAI/r

quer_voltar_x=(x00-x0)/50
quer_voltar_y=(y00-y0)/50

this.x=querfugir_x+quer_voltar_x
this.y=querfugir_y+quer_voltar_y
}

There y’go, you can change the 2 50s to w/e number you want to judge how far away the thing will run, have fun :D

view all 5 shouts

Jimmywa's comments

Game Comments
Play Free Rider 2
Free Rider 2
Nov. 28, 2008
-18 1i 18 1i 18a 1f 18a -v 17u 1e,170 1e 188 -9,18a -1 166 1e,156 1f 18a c,18c j 13m 1h,12p 1h 18c r,18f 14 10j 1h##
Play IncrediBots
IncrediBots
Nov. 26, 2008
it needs a serch button when loading robot!
Play World War Alien (bossless)
World War Alien (bossless)
Nov. 25, 2008
OMG THERE IS A CONTEST THATS WHY THRE ARE "Too many of these games ..." AND THIS IS MY FIRST SHOOTORIAL GAME "stop spamming shotorial games.."