News:

Welcome to the new Sinister Design forums!

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - algebra15

#631
Forum Games / Re: King of the hill
June 12, 2010, 08:11:41 PM
I enlist Shadowcat, who phases through you and shorts out all your defenses.
#632
Forum Games / Re: Of the Two Posters Above You
June 12, 2010, 08:10:30 PM
mike
#633
Forum Games / Re: Of the Two Posters Above You
June 12, 2010, 08:07:44 PM
Duskling.
#634
Forum Games / Re: You're banned
June 12, 2010, 08:06:29 PM
Duskling is banned for talking over my head. I have no idea what you're talking about.
#635
Forum Games / Re: Corrupt a Wish Foundation
June 12, 2010, 08:02:27 PM
Granted, but you accidentally swallow a box of Menthos. We all know what happens.

I wish for North Korea to not be as dysfunctional.
#636
Forum Games / Re: Corrupt a Wish Foundation
June 12, 2010, 07:56:48 PM
Granted, but spellcheck reads the word backwards and corrects it to "ewok." The ewok (with a slingshot) is grumpy...

I wish for a gangrenous limb.
corrupt THAT.
#637
1: Who could want to have a relationship with a guy with eyes like Gollum on a BAD day?

2: how do you make a preloader in AS3? I looked on the web, but the  solutions were all for programming on the timeline. How would you do it in a 1-frame game?
#638
Harvester / Re: Has anybody else played Harvester?
June 01, 2010, 03:55:01 PM
Which one is the "Use equipped soul"?
#639
I don't think that my document class is unattached; I ran a few trace statements, and found that everything was working, expect for the fact that Flash wouldn't actually draw the MovieClip object. The document class, my menuHandler Class (I set up a class to handle all of the menu screens; drawing them, and setting them to null once I'm done with them), and my first screen, (the Main Menu)-- all of them ran their constructor functions. The system was working fine until I added a GameLevelHandler (a class that would handle the level select screen and the screens nearby, like achievements, stats, shops, that sort of thing), using an Event called NavigationEvent to deal with menu navigation, GameNavigationEvent to deal with level screen navigation, and GameEvent to deal with going between the menu, the level select screen, and later, a class that dealt with toolbars and pulldown windows. The following is my document class.

package {
import flash.display.MovieClip;
public class DocumentClass extends MovieClip {
public var menuHandler:MenuHandler;
public var gameLevelHandler:GameLevelHandler;
public function DocumentClass() {
menuHandler = new MenuHandler();
menuHandler.addEventListener(GameEvent.GAMESTART, onGameStart);
}

public function onGameStart(gameEvent:GameEvent):void {
gameLevelHandler = new GameLevelHandler();
gameLevelHandler.addEventListener(GameEvent.GAMEBACKTOMENU, onGameBackMenu);

menuHandler = null;
}

public function onGameBackMenu(gameEvent:GameEvent):void {
menuHandler = new MenuHandler();
menuHandler.addEventListener(GameEvent.GAMESTART, onGameStart);

gameLevelHandler = null;
}
}
}


I'm going to have this problem solved in a while anyway, so if you think it's probably some problem that you can't solve because of lack of information, I'll solve it on my own. But if anything jumps out a t you, let me know please.

P.S. For some reason, in a different game I was making, the Timer instance I was using for the game Timer was saying it didn't want an input variable for the constructor, whereas I had been informed that a "25" for 25 milliseconds was what was supposed to go in...?  I don't think anything happened to t he Timer class, so if you know what might have hapened, lplease let me know as well. It kind of forced me to abandon the project...


P.S.

Now I feel kind of stupid. I forgot to add the "addChild" statement...
yeah.
#640
I've finally seen the light and started to program in AS3.

The thing is, I was making a menu system, a level screen, and an options screen; I test out the whole thing, and the entire screen is black (that's my background colour), so while no actual errors have shown up, my main menu isn't showing up. Since I can't actually put my code here (it would take up several pages -- you know AS3), do you know of a general cause or type of cause that would do this?
#641
sorry for double post, but I forgot to add the question. Is there a better way to do this with the structure I've got, or to I have to rip it out and start again with coding for the class?
#642
I was making some code for the game I asked you about before, and I opted to make it a bit differently. The code makes 5 platforms once. Problem is, "thyPlatform"'s properties and methods seem to go away when the variable is assigned to a different platform; this means only one works, and causes the jumper to bounce. I also have some code for the class "Platform", but the hitTest seems not to work as simply as it does in the frame code.
_root.makePlatform = function(){
if (_root.make != true){
for (x = 0; x < 5; x += 1){
newPlatformNumber += 1;
_root.attachMovie("platform", "platform" + newPlatformNumber, 50+newPlatformNumber);
thyPlatform = eval("platform" + newPlatformNumber);
thyPlatform.onEnterFrame = function(){
thyPlatform.checkJumper();
}

thyPlatform.checkJumper = function(){
if (thyPlatform.hitTest(jumper._x, jumper._y, true) && (jumper.dy > 0)){
_root.boing = true;
trace(_root.boing);
}
}
_root.make = true;
}
}
}

Class:
class Platform extends MovieClip {
function Platform(){
_x = Math.random()*Stage.width;
_y = 400;
}
function checkJumper(){
if (
}
}
#643
Before this conversation gets too far astray (and it may have already), thanks a million.
#644
sorry to interrupt, but if one wants an onEnterFrame behavior on all the instances of one object, how would one phrase the onEnterFrame? More specifically, WHATGOESHERE.onEnterFrame. I tried to use the name of the library item, ("platform") but it only worked on instances named "platform."


P.S. as another question, how do you change the game so people can't just right-click the game and step forward or backward?
#645
Forum Games / Re: Associations Game
March 13, 2010, 07:35:13 AM
yemen