View Full Version : i need help with a game
flamer
February 12th, 2006, 04:06 AM
hi,
i want to do a game, and in the game i want to do thet ill have a crosser,
the crosser rotates by the keys left and right, now i want to do the when i press space there will be a bullet thet will attached and go as the same dagrees as the crosser, like in worms game, i tryed it but it moving all the bullets in the diffrent diraction so thets why i need help
thanks for the helpers!:cowboy:
bombsledder
February 12th, 2006, 10:43 AM
maybe you should learn actionscript first, before you go asking for someone to make a game for you, plenty of tutorials on here
flamer
February 13th, 2006, 01:40 AM
dude, i know action script for like 2 year, i just have a littel problem-when i press space an the bullets comes out, they'll change they'r diraction as the crosser
KIERIOSHIMOTO
February 13th, 2006, 07:45 AM
try using english that people can understand
hybrid101
February 13th, 2006, 08:12 AM
come on, don't put him down, kieroshimoto, maybe english isn't really his best language
Lord Rahl
February 13th, 2006, 08:20 AM
try using english that people can understand
Correct example of statement:
Try using English that people can understand.
The bold sections were errors in your statement. I know that Kirupa doesn't need any help running his site, but don't waste posting space unless your helping.
Flamer, Try looking around a bit for some tutorials. If you can't find anything, I'm sure someone will help.
flamer
February 13th, 2006, 09:28 AM
i searched but i didnt find anything, and KIERIOSHIMOTO, english isnt my main language and its hard to explain it in english . if u havent got anything good to say so dont say it
flamer
February 15th, 2006, 03:23 PM
ANY1 CAN HELP?
Pattt
February 15th, 2006, 03:58 PM
First, set the rotation of the bullet so it is pointing on the "crosser".
Then - use Math.cos and Math.sin to set the xspeed and yspeed for the
bullet by checking the rotation. Just a fast explaition, because I don't have time right now.
But try it out! :)
GPP
February 17th, 2006, 01:16 AM
Could you please rephrase it? I was turned off by the question scince I dont get what you are saying.
SuperBokey
February 17th, 2006, 08:19 AM
try using this function (seeing is that you've used AS for 2 years now, im sure you can change it to fit your code perfectly ;))
cnt = 0;
createEmptyMovieClip("bcontainer",getNextHighestDepth());
function shoot(x,y,speed) {
cnt++;cnt %= 20;
var Name = "bullet"+cnt;
bcontainer.attachMovie("bullet",Name,cnt);
var nm = bcontainer[Name];
nm._x = x;
nm._y = y;
nm.onEnterFrame = function() {
this._x += Math.cos(crosser._rotation)*speed;
this._y += Math.sin(crosser._rotation)*speed;
if(this._x < 0 || this._x > Stage.width || this._y < 0 || this._y > Stage.height) this.removeMovieClip();
//insert hitTests with enemys, ect...
}
}
KIERIOSHIMOTO
February 18th, 2006, 07:59 AM
Correct example of statement:
Try using English that people can understand.
The bold sections were errors in your statement. I know that Kirupa doesn't need any help running his site, but don't waste posting space unless your helping.
Flamer, Try looking around a bit for some tutorials. If you can't find anything, I'm sure someone will help.
well, look who's wasting posting space.
SuperBokey
February 18th, 2006, 07:35 PM
Hehe actually your contridicting yourself ;).. He actually gave advice to the guy, thus not wasting posting space.. And your post isn't really nessesary to this topic.. (Yet neither is this one :P)
nathan99
February 19th, 2006, 03:49 PM
hrmmm i hope u guys ahieved a heap with your *****ing..
i think this may help, Flash 8 format, no time to change it, if it needs to be ask someone to do it
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.