Be a Supporter!
Choosing College Courses (uk) Posted October 26th, 2013 in Programming

Would I need to take a mathematics A-Level (on top of a computing one) to get into a Computer Science course at university? The computing course I am taking focuses on programming and, "The making of programs, as opposed to the use of them," - so I assume I'm good there.

Thanks.

Response to: AS3: Processing functions once? Posted May 19th, 2013 in Game Development

At 5/19/13 03:22 PM, egg82 wrote:
At 5/19/13 03:20 PM, Sotatop wrote: I have a for loop in a function from an external file, and as opposed to using ENTER_FRAME, I want something which goes through the code just once.
Simple; you only call it once.

I feel like a tit

thanks


I'm stumped.

I have a for loop in a function from an external file, and as opposed to using ENTER_FRAME, I want something which goes through the code just once.

Help would be appreciated

Response to: Javascript & XML Posted February 16th, 2012 in Programming

W3schools is not good source for learning. Their tutorials are incredibly outdated and as a result teach deprecated methods

I second that; I've tried using w3schools in the past - I never succeeded. I've learnt all the programming, scripting and markup languages through studying other peoples codes.

Response to: Javascript & XML Posted February 16th, 2012 in Programming

At 2 hours ago, Diki wrote: and some are Internet Explorer. :)

I hate Internet Explorer. No one should be able to use it - it's terrible.

Response to: Javascript & XML Posted February 16th, 2012 in Programming

Hmm.. You speak as if assuming I have never used a real programming language; I'm quite good in Java for example, and I have more than enough experience in making the actual website, just not the interactive side. I know Javascript, and I had already tried PHP (back then I realised that you needed to download crap to get it working, whereas I was just used to clicking on the HTML file and seeing it work). Just putting that out there. In fact I was thinking of learning PHP again if this method (writing and parsing the XML through Javascript) didn't work.

Response to: Javascript & XML Posted February 15th, 2012 in Programming

Couldn't get a more thorough answer. Thanks

Javascript & XML Posted February 15th, 2012 in Programming

I always veered away from using a database, for no apparent reason - I think that's because I don't really like testing my when pages online, nor do I like spending money because, referring to every other project I have started I've never completed. I've never been too keen on PHP, either.

Because of the nature of this forum, I expect a thrashing, but that aside - could I use XML as a database, using JavaScript to write new lines to it and to parse it? I would be using this for an online blog, but if it is impossible (I expect it isn't) are there any other methods? Security may well be an issue, though.

Response to: Wanna try my new multiplayer game? Posted February 11th, 2012 in Video Games

Excellent game! I like the style.

Response to: Le Java Posted January 19th, 2012 in Programming

I forgot to add "new main();" into String[] args.

Response to: Le Java Posted January 19th, 2012 in Programming

Oh sh*t sorry I realised what I did wrong just as I posted it. Sorry. Please don't hurt me.

Le Java Posted January 19th, 2012 in Programming

Bit rusty on the ol' Java. My class returns no errors and yet does not appear to run.

import java.awt.Graphics;

import javax.swing.JFrame;


public class Main extends JFrame {
	public Main(){
		setTitle("The Generic RPG: Legend of the Evil Guy");
		setSize(1000, 600);
		setResizable(false);
		setVisible(true);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
	
	public void paint(Graphics g){


		repaint();
	}
	
	public static void main(String[] args){
		
	}
}
Response to: CSS not working??? Posted November 7th, 2011 in Programming

Don't use W3Schools. That site is terrible.

W3schools isn't that bad, It's good for reference.

Response to: How/When did you start Programming? Posted November 6th, 2011 in Programming

I was in the middle of writing a small Java script when it failed on me in all directions. Then I tried out Python which I had once before, and I didn't like the development environment, so I went onto Ruby, and now I can't seem to execute the script.

Ruby Installation? Posted November 6th, 2011 in Programming

I've recently taken up Ruby, and I've made a small script which is save as a .rb, but I can't seem to execute it, even when I've installed the windows Rubyinstaller, it doesn't seem to work.

Response to: problems with movement Posted October 18th, 2011 in Game Development

All you need for the facing left/right is an _xscale modification, and for the rotation, to save animation and make it look better, use _rotation.

onClipEvent (load) {
var ground:MovieClip = _root.ground;
var grav:Number = 0;
var gravity:Number = 2;
var speed:Number = 7;
var maxJump:Number = -12;
var touchingGround:Boolean = false;
var rotateSpeed:Number = 10;
}
onClipEvent (enterFrame) {
_y += grav;
grav += gravity;
while (ground.hitTest(_x, _y, true)) {
_y -= gravity;
grav = 0;
}
if (ground.hitTest(_x, _y+5, true)) {
touchingGround = true;
} else {
touchingGround = false;
}
if (Key.isDown(Key.RIGHT)) {
_x += speed;
_rotation += rotatespeed;
this._xscale = 100;
}
if (Key.isDown(Key.LEFT)) {
_x -= speed;
_rotation -= rotationspeed;
this._xscale = -100;

// the xscale method will only work properly if you haven't resized the symbol.

}
if (Key.isDown(Key.UP) && touchingGround) {
grav = maxJump;
}
if (ground.hitTest(_x+(_width/2), _y-(_height/2), true)) {
_x -= speed;
}
if (ground.hitTest(_x-(_width/2), _y-(_height/2), true)) {
_x += speed;
}
if (ground.hitTest(_x, _y-(height), true)) {
grav = 3;
}
}
Response to: How/When did you start Programming? Posted October 16th, 2011 in Programming

I started animating when I was 5/6. This led me to Flash, and I was intrigued with the games that could be made with it, so I went and learned ActionScript 2.0. Then I learned HTML and CSS because I became interested in web design because of all the flash-related web sites I was looking at. After as while I learnt Actionscript 3.0 (with inevitable reluctance). Then I wanted to start with the more alien languages, like Java and C++ and started learning them.

Response to: Is Good? Posted October 15th, 2011 in Game Development

Unfortunately I don't.

Is Good? Posted October 15th, 2011 in Game Development

There are a few blatant bugs to iron out and need to change some graphics. Some features have been left out because I lost the most recent save file but, is it good?
flibiditiblidgibgibgibbitydloopja

Response to: converting an swf to .mov Posted October 9th, 2011 in Game Development

At 10/8/11 08:06 AM, Wolfos wrote: Use Adobe Media Encoder. It comes with all versions of Flash since CS3.

And, might I add, CS2 (8).

Response to: Piv. to swf. converters? Posted October 9th, 2011 in Game Development

Have none of you ever used Pivot? It's terrible, I agree, but still. Everyone's probably used it some time.
Export your .gif, import it into an editing program. Any editing program. Then use aforementioned .avi (or something) to .swf converter.

Response to: AS2:platform game jumping Posted October 9th, 2011 in Game Development

I'm going to be nice and give you what you actually want.

var jump = -12;
var grav = 0;
var vel = 2;

guy.onEnterFrame = function(){
	this._y += grav;
	if(_root.ground._hitTest(this._x, this._y, false)){
		grav += vel;
	}else if(_root.ground._hitTest(this._x, this._y, true)){
		grav = 0;
	}
	if(_root.ground._hitTest(this._x, this._y, true) && Key.isDown(Key.UP)){
		grav += jump;
	}
}

I hope that works. Haven't coded in a while, so there you go.