pugzy
19 posts
|
Topic: Game Programming /
Beginning in game Development
This really depends on what platform you want your games to run on. Game development isn’t just one platform or language.
Things to help learn:
Roblox — it’s actually good on teaching Lua scripting, despite being childish.
You need a language preference now. If you’re using Unity you can use C#, Boo or Javascript. It wouldn’t make any sense to use all three of them. If you want to make Flash games, you can use FlashDevelop + paint program and build your own, or get your hands Flash CS6. Both you should use ActionScript3.
If you want to make a desktop game, then you should learn the following languages:
Java — Great for cross-platform, not .exes and is compiled.
C/C++ — Not recommended for beginners. Great to learn, however.
C# — Similar to Java, but .exes and not as cross-platform.
Python — A great scripting language
Lua — A fast, decent scripting language.
Objective-C — If you like Apple.
If you need/want a game engine, then you can Google and find just about any. All, but Python and Lua, are great for building games down up, meaning you make everything. However, they are a little bit harder in terms of getting a game to work.
|
|
|
pugzy
19 posts
|
Topic: Kongregate APIs /
Class Variable
I’m having difficulties reading this.
|
|
|
pugzy
19 posts
|
Topic: Game Design /
Submitting a game via Kongregate
To upload games to Kongregate, it must be .swf (flash) or Unity game files. Java or any other programming languages need to be hosted somewhere and have an IFrame for it so Kong players can play it here.
|
|
|
pugzy
19 posts
|
Topic: I AM PLAYR /
Kelly
Mr. Darcy?!
|
|
|
pugzy
19 posts
|
Topic: Game Programming /
Store sprites in different arrays
Basically, I’m making a strategy game and there’s 4 different color for each unit, and many spritesheets, what is a good way to store each frame in an array?
|
|
|
pugzy
19 posts
|
Topic: Game Programming /
I'm confused. :S
My function is supposed to check the collisions between the bullets and enemies, and for the first enemies, or so, it does. But then I get, “Error #1010: A term is undefined and has no properties. At Main.as:44.”
function checkCol()
{
for (var i = 0; i < EnemyList.length; i++)
{
for (var q = 0; q < BulletList.length; q++)
{
if (EnemyList[i].hitTestObject(BulletList[q]))
{
EnemyList[i].updateMe(BulletList[q].returnDamage());
if (EnemyList[i].returnHealth() <= 0)
{
if(this.contains(EnemyList[i]))
{
EnemyList[i].removeListeners();
this.removeChild(EnemyList[i]);
}
EnemyList.splice(i,1);
i--;
}
stage.removeChild(BulletList[q]);
BulletList.splice(q,1);
q--;
}
}
}
}
Line 44 is
if (EnemyList[i].hitTestObject(BulletList[q]))
|
|
|
pugzy
19 posts
|
Topic: Game Programming /
Enemy to Stop Taking Damage
Originally posted by Ace_Blue:
Edit: Also, that ‘5’ in ‘EnemyList[q].updateMe(5);’ irks me.
I was going to change that around after I get this block of code fixed.
Originally posted by Ace_Blue:We’re missing a critical piece of information here: What happens to the bullet when its updateMe() function runs? Is it removed? If not, next frame the bullet will still be on the enemy, so you will detect another collision and deduct health again.
I have it so that it removes the Bullet, but the enemy still continues taking damage. Which is very confusing for me.
|
|
|
pugzy
19 posts
|
Topic: Game Programming /
Enemy to Stop Taking Damage
I have a function for collision. But I can’t get it to stop taking damage after being hit.
Document class
function loop(e:Event)
{
checkCol();
}
function checkCol()
{
for(var i = 0; i < BulletList.length; i++)
{
for(var q = 0; q < EnemyList.length; q++)
{
if(EnemyList[q].hitTest(BulletList[i]))
{
EnemyList[q].updateMe(5);
BulletList[i].updateMe();
}
}
}
}
Enemy class
function updateMe(num:Number)
{
takeHealth(num);
}
public function takeHealth(dmg:Number)
{
HP -= dmg;
this.Healthbar.Colorbar.scaleX = HP/MaxHP;
if(HP <= 0)
{
died();
}
}
|
|
|
pugzy
19 posts
|
Topic: Game Programming /
C++ decision directions
In theory, you could write it in any language. Java is a good example of what I mean. You need the JVM to run Java programs, but they made an OS out of Java, of course it meant implementing JVM and a lot of Assembly. Although, if I am not mistaken, it was highly unstable. There are better options than some languages as to why you wouldn’t use a language, and vice versa.
|
|
|
pugzy
19 posts
|
Topic: Game Programming /
Rotating turret towards mouse.
Originally posted by player_03:
What happened to “Math.atan2” in that code?
Wow… I feel stupid now… :S
Originally posted by NineFiveThree:
Whether this code works for you depends on where you gun is facing.
You have to adjust an offset on the angle if it is not facing to the right.
Okay. I see now. Thanks! :D
Thank you all, it works now!
|
|
|
pugzy
19 posts
|
Topic: Game Programming /
Rotating turret towards mouse.
My class is,
public class Gun extends MovieClip {
var ref:Stage;
public function Gun(R:Stage) {
R.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoved);
ref = R;
}
function mouseMoved(e:MouseEvent)
{
var theY:Number = (ref.mouseY - this.y);
var theX:Number = (ref.mouseX - this.x);
var angle = (theY,theX)*(180/Math.PI);
this.rotation = angle;
}
}
And it doesn’t follow the mouse, it’s often facing opposite, or it’s sometimes a little off. The slightest movement it changes angles.
|
|
|
pugzy
19 posts
|
Topic: Game Programming /
Rotating turret towards mouse.
Yes, I’m also changing, “gun.rotation,” to, “this.rotation”.
When I pass the stage as an argument, both x and y values are the same.
|
|
|
pugzy
19 posts
|
Topic: Game Programming /
Rotating turret towards mouse.
If I put the mc on the stage, and in the document class use,
var theY:int = (stage.mouseY - gun.y);
var theX:int = (stage.mouseX - gun.x);
var angle = Math.atan2(theY,theX)*(180/Math.PI);
gun.rotation = angle;
It works fine. How would I put the code inside the class? If I change “gun.y” to “this.y” and “gun.x” to “this.x” and move the code to the class, it bugs out.
|
|
|
pugzy
19 posts
|
Topic: Collaborations /
AI programmer
i need a Programmer who will help me make an AI that knows when it is its turn and change the color to the regions its conquered to blue...if it works i might ask you for future projects....and no im sorry i cannot pay you(even if i could it wouldnt be very much anyways)
---------------------
Gmail - pugzy100011 @gmail
Yahoomsnger - acarson12 @yahoo.com
|
|
|
pugzy
19 posts
|
Topic: Collaborations /
TextRPG (need ideas)
and thats a bad thing :P
|
|
|
pugzy
19 posts
|
Topic: Collaborations /
TextRPG (need ideas)
name the game the ‘realm of chaos’
|
|
|
pugzy
19 posts
|
Topic: Collaborations /
Artist needed
I need a person who is good at drawing guns and maybe stick people(i cant draw and make straight lines that are even )…and maybe cars also..i will be glad to have multipul artists so if you good at drawing cars but not gun nor stick people dont worry…
for more info:pugzy100011@gmail
|
|
|
pugzy
19 posts
|
Topic: Collaborations /
can some1 make these?
ok i need a rocket launcher and a missile like a nuke or just a giant missile…dont need to be colored or in 3-D all i need is the pics…
(opt)a whale and shark…maybe a little animation and again dont need to be colored…
will give credit…also pics must be decent
|
|
|
pugzy
19 posts
|
Topic: General Gaming /
need sonny glitch info
i know a glitch but if i share it i might get banned…or something
|