News:

Welcome to the new Sinister Design forums!

Main Menu

Ask the developer a question!

Started by CraigStern, February 07, 2010, 11:01:17 AM

Previous topic - Next topic

CraigStern

You mean, the religion where people worship Anu? I haven't revealed that yet. :P

Duskling

#181
If you get done with making games, what will you do next? Other than being a lawyer...?

CraigStern

Who knows? I like writing. I like music. But as it is, I'm happy making games, and I don't see myself stopping.

Zackirus

Do have any other plans for Mahboob's Basment or are you going to keep it as it is

[spoiler]With it's one treasure chest[/spoiler]

Or it could have something on it already but who knows?
If The World Was A Bit More Like Canada, Then We Would Have A Great World, And Hockey 24/7

- Lord Canada

Duskling

Quote from: CraigStern on June 20, 2010, 08:11:06 AM
But as it is, I'm happy making games, and I don't see myself stopping.
THANK GOD!

Bromtaghon

#185
Why did the Cult hide books instead of burning them/destroying them?
Will Azma return?
Is the collaboration mission featuring Gelf ever making it in to TSoG?
How much health does Nelis have on normal?
Quote from: Tastidian on July 02, 2010, 02:52:50 AM
He drove his expensive car into a tree and found out how the Mercedes bends.

Current Elemental Master of Cryokinesis.

algebra15

I ended up doing a hitTest for the waves, because the Timer always hit too soon or too late.

Now I'm writing the program for the waves, but a few problems occur.

     Once the wave occurs, a Timer is created to manage when the monsters come out of the tent.
On the timer, a monster drawing function is incurred, and the monster is created using several variables for the type of monster, which wave it's from, and which way it has to go.
The problem? If I use a Timer, TimerEvent is the only argument I can use, and no info about the monster. If I use a level-wide variable, the function won't make any more monsters of one type if the next wave overlaps. If I set the value of the monster-making function within the other function, I don't have to use a Timer, but when I use the term "this", it no longer refers to the level and says that "addChild" is not a valid function of "[object global]".  If AS3 had a simple "delay" function, this wouldn't be a problem, because I could just use a "for" loop
     I was thinking about making a MonsterMaker class that would; have a Timer, a class-wide variable for attributes (all the monsters within a wave are going to be very similar), and only handles one wave.
     Do you think this would work?

This is some of the failed code.

[spoiler] public function drawMonsters(wave, type, numbers, interval):void {
var releaseTimer:Timer = new Timer(interval*1000, numbers);
releaseTimer.addEventListener(TimerEvent.TIMER, drawMonster);
releaseTimer.start();

function drawMonster(t:TimerEvent):void {
monster = new Monster(wave, type, passageWay);
monster.addEventListener(MonsterEvent.DEAD, onMonsterDeath);
trace(this);
this.addChild(monster);
trace(l, type);
l++;
}

}
[/spoiler]
This is Gambit. The cards are about to explode. Goodbye!

Bromtaghon

If you start a thread in the Forum Games, does it count?
Quote from: Tastidian on July 02, 2010, 02:52:50 AM
He drove his expensive car into a tree and found out how the Mercedes bends.

Current Elemental Master of Cryokinesis.

CraigStern

Quote from: algebra15 on June 23, 2010, 02:08:00 PMIf I set the value of the monster-making function within the other function, I don't have to use a Timer, but when I use the term "this", it no longer refers to the level and says that "addChild" is not a valid function of "[object global]".

You don't need to use this--just type addChild(monster); and it will add monster as a child of the current class.

Quote from: Bromtaghon on June 24, 2010, 01:24:35 AM
If you start a thread in the Forum Games, does it count?

Towards what? Post count? I don't believe so.

Bromtaghon

I mean to the number of threads started.

Since Spriggats can be referred to as Shadowlings, do Shadowlings (the floating smoky orb ones) have another name also?
Quote from: Tastidian on July 02, 2010, 02:52:50 AM
He drove his expensive car into a tree and found out how the Mercedes bends.

Current Elemental Master of Cryokinesis.

Duskling

#190
I believe not, since they are never referred to as anything but Shadowlings, plus only anything within the Shadowling Empire can be called Shadowling.

Bromtaghon

Is it possible to change a non-poll topic into a poll topic?
Quote from: Tastidian on July 02, 2010, 02:52:50 AM
He drove his expensive car into a tree and found out how the Mercedes bends.

Current Elemental Master of Cryokinesis.

Duskling

Yes, but only if it is your topic, you can change it into a poll via the "add poll" button.

Duskling

Is there a way to turn the enemies in the map editor of TSoG?

CraigStern

You mean, determine their rotation by hand? Nah--that's all handled automatically by the battle engine when the map loads.