Recent posts by SwiftStriker00 on Kongregate

Flag Post

Topic: Game Programming / Pullout Menu Help

Its multi-layer:

1st(Top) Layer: Slider_mc. It just moves across the screen

2nd(Mask for 3rd) Layer: A bar that stretchs in sync with the slider_mc. Which will unveil the 3rd layer as it gets bigger

3rd Layer: All the buttons and text fields on this layer, and they dont move.


It seams that the mask layer is disrupting or blocking the code and input from the 3rd layer


bq. put the help button, search box, and search button on the slider mc and when it slides out, those will slide with it.

I will try that but, i still need a mask somewhere, because this menu isnt flush with the edge of the screen (its a little more fancy than my example pix above), so you will see the Objects on the wrong side if you do it. And as stated before I think its the mask thats giving me issues

 
Flag Post

Topic: Game Programming / Can somebody make me a pre-loader?

I know you dont want any guides on how to do it, because your lazy and expect everyone else to do your bidding. But here is a step by step tut that I made a while ago when i was just learning how to flash. go along with it, and you can have one in 5 mins, without the NG tank.



http://www.newgrounds.com/portal/view/420311


Im not saying its the best tut, just saying its an easy and quick one

 
Flag Post

Topic: Game Programming / For Loop being weird

because in the for each loop, your saying “for every object ‘i’ in the data structure ‘orbArray’, do this…” so i becomes an object. in the for loop, with i just itterating as an int, you can call the specific index of the i’th elementh, and have that array return u the object. For what your doing, it comes down to preference on how you want to do it.

 
Flag Post

Topic: Game Programming / Anti-Cheating measures

Ultimately, something like this thread could turn out to be a collaborative effort to make a nice class or API to handle all of the different techniques people can come up with. Then you could just get devs to integrate it into their work with minimal effort.


That would be helpful, but if theres an API or a standard, that makes it easier for hackers to get around ( and im asuming actual hackers, and not just kids with memory watchers)

 
Flag Post

Topic: Game Programming / For Loop being weird

two solutions
a) for loop, where you iterating variable:


for( var int:i = 0; i < orbArrray.lenght(); i++ ){
if( this.hitTest( orgArray[i] ) ){
orbArray[i].removeMovieClip();
}
}

b) you may just need to give ‘i’ a type:
 for( i:ObjectFoo in orbArray) 

which then you would only need to call ‘i’
 i.removeMovieClip(); 



Im an AS 3 scripter, but i think it works the same, try it.

 
Flag Post

Topic: Game Programming / Pullout Menu Help

Greetings ActionScripters and programmer extraordinaire, I have come in need of assistance and I belive this site to be my best bet. I am programming a virtual tour of a campus, and on the main screen i have a pull out menu to allow users, to access help menu, and to search for rooms. I have tried a bunch of different things in order to get its functionality right, but I think there are some issues with mask that may be hindering it. “This is an example of the pullout menu” so you can see what im talking about. the head of the bar with the triangle slides out when clicked on, and then stops at the furthest point, and waits for another click to slide back in. That works fine. my issue is with the Help Button, and the Input Textbox, and the GoSearch button(green triangle). the buttons and textbox are underneath a mask, so when the slider head is clicked, and slides out, they will not be shown untill the slider passes them. All have instance names created on the first frame, and on their layer its the only keyframe, since they dont move. The two buttons only work when the slider is moving out, once it gets to the stopping point, either button will stop working for the remainder of the time that the swf is running (even if i close it and open it again). Then the Input Text box, never shows up, so I can’t see what im typing in, nor can i tell if im even typing in anything. The only way i can tell that its there, is my cursor will change to the “I” symbol, when i mouse over. The textbox does have borders enabled, but i cant see them. This is critical to getting my project done, if you can help i would greatly appreciate it. If you want to give further advice, pm me and i will give u my email. Thanks!

 
Flag Post

Topic: Game Programming / Small Functions .VS. OverHead

Just a quick point on the six pieces thing: MovieClips are just DisplayObjects with alot of extra functionality built into them, obviously to do more. If you just want to have six piece fly out and then fade away or something, changing them to Graphics, will make it alot easier for flash to process.

 
Flag Post

Topic: Game Programming / Terrain Destruction

I have looked for some kind of guide on how terrain destruction works in flash. the one at http://www.gotoandplay.it/articles/2004/02/artilleryproto.php isn’t very clear with his code, also its in AS 2.0, which im not very familiar with. I grasped the concept that you need to do something masking, but thats about it. Can anybody explain the processes in AS 3.0 terms? Im very interested in making a Tanks game, and this is the only thing keeping me from doing it

 
Flag Post

Topic: General Gaming / most overrated games

my friends and I started a similar thread on gamefaqs and let me tell, boy did that get all the halo fanboy’s panties in a bunch. It was fun making them cry out in anger. I personally believe Call of Duty series are much better games than the Halo series, especially comparing Halo3 to CoD4. What made more copies of halo sell than CoD? Marketing and loyal fanyboys who have to have it.

also why listen anything MTV says, everyone there is all messed up in their own poser world

 
Flag Post

Topic: Game Programming / Collision Detect on ENTER_FRAME???

ya im not going to do that loop every frame, just once, i’ll sort my HotSpot’s into an array, thanks

 
Flag Post

Topic: Game Programming / Collision Detect on ENTER_FRAME???

do what with it? all it seems to be is another way of accessing the objects type, same as the boolean keyword “is.” And thats not problem, I have the problem of gathering all the objects and to do a collision detect for everything it touches on every frame

 
Flag Post

Topic: Game Programming / Collision Detect on ENTER_FRAME???

[AS3.0] So I have two kinds of objects, one of which implements Burnable (Marker Interface) and another object which implements HotSpot (another Marker Interface). So one a few of my Burnable objects can be dragged around by the mouse, but if they touch a HotSpot, they must run their burning animation. My first idea using:

//part of a function that is run on Event.ENTER_FRAME

if( someBurnObj.hitTestObject(someOtherObj) && someOtherObj is HotSpot ){ someBurnObj.burnMe(); }

which would work, but I cant get the someOtherObj. I’ve tried getObjectsUnderPoint method on all 4 corners of my object in the ENTER_FRAME but i get null refrences every time its run. i looked but can’t find a getAllChildren (or something like it) method to get from my stage cause i’d just run through and pull out all the HotSpots, and hittest them to the currently dragging obj. Any Ideas?

 
Flag Post

Topic: Game Programming / ¿ Overloaded Methods ?

“D’oh. I’m ordering my first AS3 book post-haste, I can’t live in the darkness any longer :0 All this time, I’ve been trying to hack this stuff out in AS2. hehe”
Indie, Essential ActioinScript 3.0 by Colin Moock. Good Choice.

 
Flag Post

Topic: Game Programming / ¿ Overloaded Methods ?

yes those optional params will work well thanks.



public function classA ( name:String= “default_Name” ){ this.myName /* just a class var */ = name; …}


will that work as a default constructor because in classZ i call this:


classZ ( obj:classA, val:int ) { … }

The point is to pass in an already created classA object to classZ
because i get error 1203: No default constructor found in base class stick:classA

 
Flag Post

Topic: Game Programming / ACK! What do I need to have to do AS3?

I would go with CS3. I do my coding in its built in editor. Its not the best but its built in documentation makes a quick pick up on stuff. You can do purely code or pure ‘art’ w/ CS3. I’m not that graphically inclined either, and personally I do my drawing in Photoshop and then bring my images over, but if you want an artist for your program just advertise your need on sites like this, and you will have a handful of people willing to do it

 
Flag Post

Topic: Game Programming / ¿ Overloaded Methods ?

I am doing some basic inheritance stuff: classX, classY extends classX. In my classY I have a constructor


public function classY ( param1:Number ){ super.classX()…}


That works fine. but in my classY I also want to have another constructor as the following:


public function classY ( param1:Number, param2:Number ) {…}


But it complains about duplicate names. I know there cant be the same name as a var and a function, but does AS3.0 not support overloading a function? I tried override keyword but that didn’t work.

 
Flag Post

Topic: General Gaming / RPG's Detailed or Not to be Detailed

Nabb – thanks I didn’t think of the pop up damage. But I did plan on incorporating on visual queues as well, mostly for bosses. I am a Computer Science major, and I want to concentrate in A.I. so I try to aim my code around how should objects “think.”


Dedendre – I hate scrolling through logs, but that might be because of all the excess info that i have to scour through. It also invites people learn how my engine works w/ more detail, not being a big issue in my first version of the game, that will only be single player. But I was considering just storing the previous action and its results and clearing all after the battle sequence.


Looking back on my youth, Pokemon seemed to keep it simple enough yet give good guess work on their system. while not a tactic the combat sequence was a well done, ’cept for the weird angles on the pictures =P

 
Flag Post

Topic: General Gaming / RPG's Detailed or Not to be Detailed

Yes FFT was good. I find my self leaning towards Fire Emblem combat system with just a number and a health bar. and then optional details later. My roommate is one of those, " I gotta have every detail every second " kinda guys. i was hoping that this little survey would show if he was a minority or not.

 
Flag Post

Topic: General Gaming / RPG's Detailed or Not to be Detailed

Hey everyone, I’m making a turn-based, tactical, RPG. I have all kinds of ideas on how to display my info, but I was wondering how much information everyone likes to have?


( this is in addition to the visual queues from health bars, etc.. )

1) i hit, he hurt

2) I hit, he looses 10%

3) I strike with my Short Sword , he looses 5hp ( 10% )

4) I strike with (Short Sword: AIM_BONUS = 3, STR_BONUS = 4) {no Crit}, and he takes wound to chest 11hp lost ( 14.5% ) and starts bleeding for 3 rounds

5) other



I don’t like extra clutter, but I’ll give the people what they want. So I would vote 2, myself. Thanks for the input!

 
Flag Post

Topic: Game Programming / Need Help with Buttons ( AS 3.0 )

I started playing around based off of what you said Alternate and I noticed then when you create a new button on the stage and give it a name, lets say BobTheButton, and you click on Export for AS it will create a class BobTheButton w/ the base class of SimpleButton.

now your code bit


BobTheButton.addEventListener(MouseEvent.CLICK, someFucntion );

If thats the case, then what you are doing is trying to tell the class to add the event listener when there is no instance of it.
Simple Fix: go to your stage and click on the button no go down to the properties pane and you will see a grayed out box that says something like this “Instance name here”, put in Bobby. Now go back to your AS code and try this:


Bobby.addEventListener(MouseEvent.CLICK, someFucntion );

And it should now work =)

 
Flag Post

Topic: Game Programming / Need Help with Buttons ( AS 3.0 )

wow i just relized i put: import java.events

i think thats some clue for me to go back to java, lol

 
Flag Post

Topic: Game Programming / Need Help with Buttons ( AS 3.0 )

Did you put the import statement in?

import java.events.*;

 
Flag Post

Topic: Game Programming / Need Help with Buttons ( AS 3.0 )

guess I didn’t look hard enough for the event.target.name, and dazzer i guess your way is better OOP standards, something to look into later if have problems, but I just didnt see it neccasar to make a whole class just for a couple of buttons

Thanks!

 
Flag Post

Topic: Game Programming / Need Help with Buttons ( AS 3.0 )

Ok I’m new to AS in general so bear with me…

I am creating a map, and on this map will have 5 buttons, one for each building. Now when I constructed them I put them all on the first frame all in one layer. Heres my problem, I have 2 scenarios for the buttons, a couple of building buttons I want to load and run another .swf, and then the remaining ones I want to open a web page.

In regards to the web page issue, I have this code:
myBuilding_01.addEventListener(MouseEvent.CLICK,clickHandler);
myBuilding_02.addEventListener(MouseEvent.CLICK,clickHandler);
function clickHandler(event:MouseEvent):void{
navigateToURL(new URLRequest(“http://www.purple.com&#8221;));
}

which is cool and all, it works for whatever and whenever I click on _01 and _02 it takes me to purple.com (just a test url for now), but i want 02 to go to a different url, lets say Kongregate.com for arg sake. how can I setup the buttons to do different actions? I tried some trace code and got [object myBuilding_01], now in my past programming experiences I would use the trace() ( toString() ) to determine which button and have a switch statement, but trace throws on the " [object ] " garbage. So if my toString() idea was good, how can i get rid of the extra, because i’ll chop that string down from: myBuilding01 ==> 01 which i’ll use for the switch.

Also Im not sure what the code is to load and run a swf…

Im doing all of this work in Adobe Flash CS3 Proffesional, in the Actions-Frame area ( F9 ). Thanks for the help in advance!

 
Flag Post

Topic: Game Programming / Advice for a beggining programmer.

Zulu,

I’m sitting in the same boat as you, and just like to let you know of some things that are helping me: 1) other devs on Kongregate, this has got to be the most friendly and helpful. I ask my fair share of questions and they do pretty good job 2) The book: Essential ActionScript 3.0 by Colin Moock . The book is amazing it does a great job teaching AS3 syntax, or its laid out well if you just want to look up one thing. (man that sounded very advertisement, so O’reily books i want some royalties :P ) 3) Keep your you program simple, just get down the basic core functionality, then add in the goodies later. Its easy to get carried away with good ideas for your game, but it will make your job a living hell if you try and implement them all at once