22 Forum Posts by "Sotatop"
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.
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
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.
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.
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.
Couldn't get a more thorough answer. Thanks
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.
Excellent game! I like the style.
I forgot to add "new main();" into String[] args.
Oh sh*t sorry I realised what I did wrong just as I posted it. Sorry. Please don't hurt me.
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){
}
}
Don't use W3Schools. That site is terrible.
W3schools isn't that bad, It's good for reference.
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.
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.
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;
}
}
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.
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
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).
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.
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.

