kirt7788
120 posts
|
Topic: Game Programming /
[AS2] shapeFlag hitTest still using the bounding box?
I don’t think I do need to use the localtoGlobal command here. Both of these movie clips are on the same frame of the main timeline. This code is just written inside the boundary.
|
|
|
kirt7788
120 posts
|
Topic: Game Programming /
[AS2] shapeFlag hitTest still using the bounding box?
On one frame of my game, I have two movie clips. One is the boundary, which is a big block of paint with an empty path erased into it. The other is a player, who is meant to walk through the path. I’m trying to use a shapeflag hitTest so that I dont need to create tons of separate hitTests in order to make the player stay inside the path. My problem is that this current code is still using the boundary’s box to determine the hitTest. Does anybody know why this is?
onClipEvent(enterFrame) {
if(this.hitTest(_root.dude.body._x,_root.dude.body._y,true)) {
_root.left=false;
_root.right=false;
_root.up=false;
_root.down=false;
} else {
_root.left=true;
_root.right=true;
_root.up=true;
_root.down=true;
}
}
(I’m also using a separate movieclip inside the player called “body” for the hitTest since the players head is big and in the code for the player’s movement, left, right, up or down need to be true for the player to move)
|
|
|
kirt7788
120 posts
|
|
|
|
kirt7788
120 posts
|
Topic: General Gaming /
Today's Badge of the Day...
Todays badge is to get a distance of 3,000,000 ft in toss the turtle. I got just under 4,000,000 ft and didn’t get the badge… Is there something I’m supposed to do to submit it? (also before anyone asks, I’m positive that it was over 3 million ft, and not 300,000 ft :P)
|
|
|
kirt7788
120 posts
|
Topic: Kongregate /
Payment Information
ahh okay that makes sense then
|
|
|
kirt7788
120 posts
|
Topic: Kongregate /
Payment Information
Your payment information on this website for the games you create.
|
|
|
kirt7788
120 posts
|
Topic: Kongregate /
Payment Information
Why exactly does it need your social security number in your payment information? Does anybody know this?
|
|
|
kirt7788
120 posts
|
Topic: Game Programming /
Help with my sound on/off button
I have the tweens to make the movie clips slide in and out within the actual movie clips. Im thinking I’m just going to make one small button in the corner that doesn’t slide, but works for sound on and off. Thanks though. :)
|
|
|
kirt7788
120 posts
|
Topic: Game Programming /
What software do you use.
Adobe CS5 (Full package) and audacity
|
|
|
kirt7788
120 posts
|
|
|
|
kirt7788
120 posts
|
Topic: Game Programming /
Help with my sound on/off button
Also, I know that if I can get the sound on and sound off button to scroll out with the panel (soundMC), I can get them to actually turn the sound on and off. Right now its just the actual panel that scrolls out like I want it to, the sound on and sound off buttons just stay in place.
|
|
|
kirt7788
120 posts
|
Topic: Game Programming /
Help with my sound on/off button
I’m adding a sound on/off button to my game that I want in the upper left corner. When the cursor goes over “soundMC” in that corner, it will scroll out. I have the two MC’s for the actual sound on/off part on top of soundMC. they’re going to scroll out with soundMC (I’m making these all scroll out just by stopping and playing the actual MC’s) My coding in the frame shoud be something like:
soundsMC.onRollOver = function() {
soundsMC.play()//moving the panel the buttons are on
soundON.play()//moving the on button with the panel
soundOFF.play()//moving the off button with the panel
}
soundsMC.onRollOut = function() {
soundsMC.play()//moving the panel back in
soundON.play()//moving the on button back with the panel
soundOFF.play()//moving the off button back with the panel
}
I know this won’t work because one function isn’t able to move all three things like that, but my question to you is, how would I go about fixing this.
Thanks to anyone who answers :)
|
|
|
kirt7788
120 posts
|
Topic: General Gaming /
Gamertags (XBL, Wii Codes, PSN, etc)
XBL GamerTag: XPushinButtonsX
I’d tell you my steam too but everyone hates mac users haha.
|
|
|
kirt7788
120 posts
|
Topic: General Gaming /
Beta Test My Zombie Tower Defence Game
I’d say this is a really impressive start. For some more improvements, maybe add some more variety to it; new turrets, different levels, etc. Adding your own style to it will make it a lot more unique and less strict to the Desktop TD feel. After this, you could also try and make the game run smoother. You could try making the graphics the best they could be and have some more fluid animation. All in all though, this could be a really fun game! Nice Job!
|
|
|
kirt7788
120 posts
|
Topic: Game Programming /
Statistics
This is all I need? Is there anything I need to do for it to recognize when GameCOmplete changes to 1?
|
|
|
kirt7788
120 posts
|
Topic: Game Programming /
Statistics
Hey, just making sure if I wrote this statistic for completing my game right…
on the 1st frame i put:
var kongregate = _global.kongregate;
kongregate.services.connect();
and
var GameComplete:Number = 0
on the last frame GameComplete equals 1… Did I do anything wrong?
|
|
|
kirt7788
120 posts
|
Topic: General Gaming /
Button Search 3 Suggestions?
Yeah I could definitely do that :D
|
|
|
kirt7788
120 posts
|
|
|
|
kirt7788
120 posts
|
Topic: Game Programming /
Controlling the Timeline with a HitTest?
Do you mean I just change play to gotoAndPlay and keep the HitTest?
|
|
|
kirt7788
120 posts
|
Topic: Game Programming /
Controlling the Timeline with a HitTest?
I was wondering how I could control the timeline with a hitTest. I’m not that great with actionscript and can’t see what I’m doing wrong in my code or if this is possible to do at all.
onEnterFrame = function() {
if (mc1.hitTest(_root.mc2, true)) {
play();
}
}
|
|
|
kirt7788
120 posts
|
|
|
|
kirt7788
120 posts
|
Topic: Game Programming /
Moving MC's with Momentum?
thanks a lot. I just make the variable friction a negative number right? (I’ll play around with exactly what number I want it)
|
|
|
kirt7788
120 posts
|
Topic: Game Programming /
Can you help?
What exactly do you need script for? If you just want to play a title screen before a game that’s just timeline control at the most.
|
|
|
kirt7788
120 posts
|
Topic: Game Programming /
Moving MC's with Momentum?
I’ve been trying to figure out how i’d go about making a movie clip move around with momentum in actionscript 2.0. I know how to make a movie clip move normally with the arrow keys and I’m pretty sure for momentum you need to include a variable for the momentum somehow. I just don’t know how to incorporate this variable wit the coding. Does anyone know how I could do this?
|
|
|
kirt7788
120 posts
|
Topic: General Gaming /
Button Search 3 Suggestions?
I’m finally going to make Button Search 3 and decided that I’ll take any suggestions for levels that you guys can come up with. With my levels and user-suggested levels, this game’ll be bigger and better than Button Search 1 and 2 combined! So yeah, if you have any ideas on what you want to see in the next game feel free to post them here!
-Ryan
|