Be a Supporter!

I have the levels for my game set up in Frames. And when the character gets to the end of the level, the goal, it goes onClipEvent (enterframe) {
*hitTest code*
gotoAndStop (x);
}

When it does it flashes the level really fast and then plays. How do I make a clean transition to the next level? Ive tried searching and found nothing. Thanks.

Response to: Final Touches for a Game Help? Posted July 2nd, 2011 in Game Development

Yeah I don't expect anyone to write out a code. I would LOVE and PREFER to learn it. I do not have a problem. Remember, I've only started this week and I have learned a lot so far. I cannot understand everything right off the bat. It is nice to have someone explain. And Mint you post stuff asking questions all the time and you have done this for how many years?? You cannot understand everything and what you understand someone might have a better way. I am not lazy I am just confused, trust me I have searched.

Response to: Another AS2 Problem Posted July 2nd, 2011 in Game Development

Post the code, that would help. I cannot really understand what your question is.

Response to: Final Touches for a Game Help? Posted July 1st, 2011 in Game Development

At 7/1/11 10:20 PM, HAROfficial wrote: LAt 7/1/11 10:07 PM, DannyDaNinja wrote:
It is the best answer forany question.
So kids, next time when your in a hardcore math test, just write ' google it ' for each questions answer, and you'll get 100%! :D
I am going to use that as my signature. Also, original poster of this topic, go and learn how to code. So many resources on the internet. You can clearly not be bothered to search it or your brain is just too immature to interpret it yet :)

I have been searching it. I just cannot find information clear enough. There is no need to be a jackass about it...

Response to: Final Touches for a Game Help? Posted July 1st, 2011 in Game Development

At 7/1/11 07:28 PM, MintPaw wrote:
At 7/1/11 02:54 PM, Wolfos wrote:
I don't think you can break ifs. :/
At 7/1/11 06:04 PM, DimebagRip32 wrote: Hey thanks! I hate to be ignorant, but... Could you explain the Boolean (the whole top half) or if someone could. I would like to know what I was doing with it.
Google it

I did. That code was a little tough to interpret.

Response to: Final Touches for a Game Help? Posted July 1st, 2011 in Game Development

At 7/1/11 02:54 PM, Wolfos wrote:
At 7/1/11 11:55 AM, DimebagRip32 wrote: Also, a pause button would be nice
Assuming you program in the flexible/correct way, just do something like this:

var pause:Boolean = false;

if (we pressed the pause button){
if (pause == false) pause = true;
break;
if(pause == true) pause = false;
}


function onFrame(or whatever the fuck your main loop is called){
if(pause == false){
update the game logic();
}
}

Hey thanks! I hate to be ignorant, but... Could you explain the Boolean (the whole top half) or if someone could. I would like to know what I was doing with it.


Ok, so I am wrapping up my game and I want to add a few things and fix some bugs. One problem I have is that when I press Enter again while in the game it skips? How could I fix this.

Now the things I want to add. Is how do you effectively add movie clip in game menus? I am not very sure how to do this correctly. I have tried before and it did not work so well.

Also, a pause button would be nice as well as other nice UI features of a game.

I am sorry if this is asking much, anyone that post something of helpful nature I will rate something of there's. I am trying to learn Flash and these forums have helped a bunch! So thanks everyone!

Response to: Side Scrolling shooting Game Posted July 1st, 2011 in Game Development

At 7/1/11 03:40 AM, Secretmapper wrote: Hi guys. I've been practicing with AS3 programming lately. I'm have intermediate knowledge of it to say the least, but I have a question. What will be the best way to create a side scrolling shooting game with interchangeable weapons? I can create a side scroll shooting game when the player is not allowed to change weapons, I only need to make animations for shooting and walking. But what is the best way to program a game with numerous weapons? Do I really have to create animations for each gun? I think there is a better way. And what about interchangeable characters? Is there a way to dynamically assign animations?

My suggestions, I know you do not want to hear this, but start smaller. I had the same aspirations when I started. I wanted to create a platformer game like you have never seen, and one day I will. But right now I had to put it down, it makes so much more sense. My thing would be to create something simple, if you cannot get started you are going to have a lot of trouble finishing. Think about what you know, and go from there. When you make your first game no matter if it is a matching game, you will learn a lot. Start smaller and then work your way up, I would not recommend something that large of a game for a beginner. And I know you want it to become successful.

Response to: 2 simple questions for AS 2.0 Posted July 1st, 2011 in Game Development

At 7/1/11 03:54 AM, MrMojoRisin5 wrote: 1.I need to limit my "ammo" variable, so it can't go below zero.
2.How can I put a key code (e.x. key code for M = 77) in a "on(keyPressed)" command?

Please help.

Explain what you want to do with the keycode more?

Response to: vCam right boundaries. Posted June 30th, 2011 in Game Development

At 6/30/11 10:35 PM, caseymacneil wrote: some more detail please??

My right boundary doesn't exist. I have that code in there for the right boundary but it doesn't work?

Response to: vCam right boundaries. Posted June 30th, 2011 in Game Development

At 6/30/11 10:47 PM, MintPaw wrote:
actionscript 2.0 blows dick
At 6/30/11 10:35 PM, caseymacneil wrote: some more detail please??
Well I'd assume it finds an alleyway somewhere...

What does that mean?

Response to: Boundaries in AS2? Posted June 30th, 2011 in Game Development

At 6/30/11 06:03 PM, grimeslives wrote: hey so if you want to preserve a rectangular border for your objects the basic test is: x, y, x+width, y+height against boundaries min_x, min_y, max_x, max_y. complex physics are not a necessity, and if you're interested in understanding / implementing collision checks between primitives, I can't recommend "Real Time Collision Detection" highly enough. (this book covers everything from boxes, triangles, planes, swept spheres, rays, onto convex polyhedra)

Nice, I wouldn't like to get a book based on just on topic in Flash. I would rather get one that covered multiple ones. Do you know anything about vCams? It is only letting me set one boundary.

Response to: vCam right boundaries. Posted June 30th, 2011 in Game Development

At 6/30/11 07:45 AM, Sandremss128 wrote: actionscript 2.0 blows dick guys, I'm not even going to take it seriously.

I do not see the big reason to hate it? Yeah there is As3 and its better but still? It isn't very difficult.

Response to: Boundaries in AS2? Posted June 30th, 2011 in Game Development

Ok everyone, geez, try not to blow this up or anything...

Boundaries in AS2? Posted June 30th, 2011 in Game Development

I have developed some boundaries for my game in As2, however, I do not like them. if(this._x >=1400){
this._x -= 10;
}
if(this._x <=30){
this._x += 10;
}
if(this._y >=360){
this._y -= 10;
}
if(this._y <=30){
this._y += 10;
}

I do not want the character to bounce up and down (gravity is enabled). How do I get the character to just stop?

vCam right boundaries. Posted June 29th, 2011 in Game Development

My vcam is not functioning properly on the right boundaries. Could someone give me some insight?
onClipEvent (load) {
CamX = this._x
CamX2 = this._x
CamY = this._y
GoCamX = _root.ship._x
GoCamY = _root.ship._y
}
onClipEvent (enterFrame) {
this._x = CamX
this._y = CamY
GoCamX = _root.ship._x
GoCamY = _root.ship._y
if(GoCamX > 280){
CamX = GoCamX
}else{
CamX = 280
}
if (GoCamX < 990) {
CamX2 = GoCamX
}else{
CamX2 = 990
}
}

Response to: This stupid hitTest! Posted June 29th, 2011 in Game Development

Thanks, I will try this soon.

Response to: This stupid hitTest! Posted June 29th, 2011 in Game Development

At 6/29/11 02:50 AM, swishcheese wrote: ohhh, and just noticed something... in the y positon of the hitest you have _y+(_width/2), it should just be _y or _y+(_height/2), based on how you have your anchor point located.

Yeah I changed that. How would I set up more points though, I am not sure how to do that.

This stupid hitTest! Posted June 28th, 2011 in Game Development

I have a problem with inconsistency with my hitTest. I have a ship that when it collides with the asteroids, grouped within a MovieClip, it will have great accuracy on one target, and poor accuracy on the other. Here is the code that I used. The movie clip of the asteroids is instance named "asteroid".

if(_root.asteroid.hitTest(_x+(_width/2),
_y+(_width/2),true)){
this._x -= 3;
_x = 80;
_y = 250;
xspeed = 0;
yspeed = 0;
_root.lives -=1;

This stupid hitTest!

Response to: Robot Day 2011 Game Contest Posted June 28th, 2011 in Game Development

At 6/28/11 09:54 AM, caseymacneil wrote:
At 6/28/11 02:04 AM, DimebagRip32 wrote:
At 6/24/11 05:07 PM, Kibester wrote: I would program a game for this, but I can't think of any ideas for it! Oh Noes
What about a Steve Jobs (Mac) vs Bill Gates (Windows) Robot duel? Where you make your robot with whatever side you are on and beat others?
gee doesnt that sound familliar

Holy crap. I had no idea that even existed? Wow..newgrounds like has everything. Huh, I guess I should play it now..

Response to: Vcam failure! Posted June 28th, 2011 in Game Development

Also, when I added both the right and left boundaries together it would only do one boundary rule.

Response to: Robot Day 2011 Game Contest Posted June 28th, 2011 in Game Development

At 6/24/11 05:07 PM, Kibester wrote: I would program a game for this, but I can't think of any ideas for it! Oh Noes

What about a Steve Jobs (Mac) vs Bill Gates (Windows) Robot duel? Where you make your robot with whatever side you are on and beat others?

Response to: Vcam failure! Posted June 27th, 2011 in Game Development

Thanks you are incredible! How did you learn all this stuff?

Response to: Vcam failure! Posted June 27th, 2011 in Game Development

Yeah that works great, but what if I want to make the my lives display stay in the center when the camera scrolls. Like when it goes to the right how can I make the display stay in the center?

Response to: Vcam failure! Posted June 27th, 2011 in Game Development

O_O Oh my God that is so great! Thank you so much, that is super helpful, as promised I will rate 3 new post by you. This is excellent I am super thankful.

Response to: Vcam failure! Posted June 27th, 2011 in Game Development

Yeah I would like a code in As2 that I could refer to when I am making my code. It is just so horrible that the cam goes all over the screen. I would like to know how to make a solid, simple boundary.

Vcam failure! Posted June 27th, 2011 in Game Development

My vCam follows a ship in my game.

onClipEvent (enterFrame) {
_y += (_root.ship._y-_y);
_x += (_root.ship._x-_x);
}

How do I keep it from viewing off screen? Trust me I have tired countless things I just can't seem to get it. First successful post I will rate 3 newest post :D

Vcam failure!