Rilliden
377 posts
|
Topic: Game Programming /
Shootorial help
Crap my post didn’t go through earlier but i tried the 2nd thing you said and nope :\ are there any downloads for after part 1. I probably made a really small error thats hard to find.
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
Shootorial help
Yes to 1
And ill check tomorrow on that im not really feeling good.
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
Shootorial help
but the shootorial makes you do the script for the ship on an action script file and doing it that way would take more time.
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
Shootorial help
sorry been busy with 3ds max lately/ yes to both of those.
EDIT: Wait i copied it wrong but now its saying
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
Shootorial help
not allowed in a class definition cheeze and truefire i checked everything you have said and no go. :\ flash hates me
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
Shootorial help
i did i saved them both in the same folder the class for the ship is ship on the symbol and everything.
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
Shootorial help
Ive done everything right for this and ive double checked everything ive redone everything and it still wont work here tell me if this is wrong.
class Ship extends MovieClip
{
var velocity;
function onLoad()
{
velocity = 10;
}
function onEnterFrame()
{
if( Key.isDown(Key.RIGHT) )
{
_x = _x + velocity;
}
if( Key.isDown(Key.LEFT) )
{
_x = _x – velocity;
}
if( Key.isDown(Key.UP) )
{
_y = _y – velocity;
}
if( Key.isDown(Key.DOWN) )
{
_y = _y + velocity;
}
}
}
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
ActionScript 2.0 or 3.0
and dont forget to put package at the beginning i always forget that. :D
|
|
|
Rilliden
377 posts
|
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
duplicate function O.O
nope that didnt change anything.
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
duplicate function O.O
still got a syntax error on
xDifference = player.x – _xmouse;
yDifference = player.y – _ymouse;
|
|
|
Rilliden
377 posts
|
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
duplicate function O.O
saybox would i just put on(release) function infront of that?
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
duplicate function O.O
also whats wrong with this i cant find it D:
xDifference = player.x – _xmouse;
yDifference = player.y – _ymouse;
var angleRadians:Number = Math.atan2(yDifference, xDifference);
var angleDegrees:Number = Math.round(angleRadians180/Math.PI);
player._rotation = angleDegrees;*
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
I need a snake tutorial...
i blame inumo for seemingly making an account to say something i don’t get. :[
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
I need a snake tutorial...
saybox i actually searched the web for a tutorial not getting other people to do it for me. COUGH Osiris
|
|
|
Rilliden
377 posts
|
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
duplicate function O.O
argh im seriously guessing on this one
on (release) {
_root.bullet.duplicatemovieclip("bullet")
}
and i dont have a clue about how to make the bullet go to the player i know its x and y something like that i have seen it and am being driven insane.
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
duplicate function O.O
wait but how would i place that in script because my players moveing i have a guess but looking at it i know its wrong.
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
duplicate function O.O
thank you saybox but how would i make that appear on my character?
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
I need a snake tutorial...
lol and look what the second link is its a tutorial of exactly what he was looking for and i had to type 3 words.
You know i think im going to throw a tutorial of how to look for tutorials right now!
as2(what you want tutorial in) snake(what you want tutorial for) tutorial(to find the stinking tutorial) OMG that was SOOO hard.
|
|
|
Rilliden
377 posts
|
|
|
|
Rilliden
377 posts
|
Topic: Serious Discussion /
will the world end in 2012
argh i feel like i should just say that it says the planets will align but guess whats left out where you read that IT HAPPENS EVERY YEAR!!! Also do you really want to go off of Mayans who believed that the sun was a god and that the only way to make the sun happy was to sacrifice people.
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
duplicate function O.O
i know but im looking at that going O.O .
|
|
|
Rilliden
377 posts
|
Topic: Game Programming /
duplicate function O.O
also xDifference = player._x – _xmouse; is a syntax error.
|