Author Topic: Ask the developer a question!  (Read 569510 times)

Offline ArtDrake

  • Black Cape
  • ***
  • Posts: 725
    • View Profile
Re: Ask the developer a question!
« Reply #315 on: September 05, 2010, 06:51:53 PM »
What's the best way to make a method that, over 36 frames, makes one full rotation of a MovieClip, without being dependent on outside variables? I'm new to 3D programming, and I can sometimes get 1 rotation at a time, but when I try to do 2, the whole function is screwed up in practice.

Offline Ertxiem

  • Global Moderator
  • Black Cape
  • *****
  • Posts: 627
    • View Profile
Re: Ask the developer a question!
« Reply #316 on: September 06, 2010, 12:47:15 PM »
Is the new AI from TSoG able to command (intelligently) units with speed 5 or above or should we forget making such suggestions for TSoG?
Ert, the Dead Cow.
With 2 small Mandelbrot sets as the spots.

Offline Xemadus Echina

  • Blue Cape
  • **
  • Posts: 235
  • :D ;D :) :( :-X :-[ :'(
    • View Profile
Re: Ask the developer a question!
« Reply #317 on: September 06, 2010, 10:03:58 PM »
are you completely buried in work?
im writing a book!
http://sinisterdesign.net/forum/index.php?topic=236.0;topicseen
heres a free verse poem I wrote for school
You never know
Just what you will find after you
Lost your favorite thing. But
The important thing is that the
Game you play will help you to get by.

Offline Duskling

  • Black Cape
  • ***
  • Posts: 850
    • View Profile
Re: Ask the developer a question!
« Reply #318 on: September 06, 2010, 11:01:52 PM »
Have you ever done something so crazy and stupid that it was nearly fatal as a child?

Offline .:Light-God:.

  • Stone Golem
  • *
  • Posts: 36
    • View Profile
Re: Ask the developer a question!
« Reply #319 on: September 09, 2010, 08:49:25 AM »
What characters are you planning on making in TSOG?

Offline CraigStern

  • The Creator
  • Administrator
  • General
  • *****
  • Posts: 3791
    • View Profile
    • Sinister Design
Re: Ask the developer a question!
« Reply #320 on: September 09, 2010, 09:37:27 AM »
Wow--kind of a backlog here, huh? All right, let's get to it:

Quote
What's the best way to make a method that, over 36 frames, makes one full rotation of a MovieClip, without being dependent on outside variables? I'm new to 3D programming, and I can sometimes get 1 rotation at a time, but when I try to do 2, the whole function is screwed up in practice.

I know how I'd do it, but it might be better if you just posted your code so I can tell you why it won't work beyond a single rotation.

Quote
Is the new AI from TSoG able to command (intelligently) units with speed 5 or above or should we forget making such suggestions for TSoG?

See here.

Quote
are you completely buried in work?

A bit, yeah. :'(

Quote
Have you ever done something so crazy and stupid that it was nearly fatal as a child?

Nope.

Quote
What characters are you planning on making in TSOG?

Playable ones, other than the ones you've seen? Qudssi, Naj, La'Man, and Rajav. ;)

Offline bugfartboy

  • White Cape
  • ***
  • Posts: 1729
    • View Profile
Re: Ask the developer a question!
« Reply #321 on: September 11, 2010, 02:13:43 PM »
Are you capable of removing the character limit on the signatures? Or is that just part if using SMF?

Offline CraigStern

  • The Creator
  • Administrator
  • General
  • *****
  • Posts: 3791
    • View Profile
    • Sinister Design
Re: Ask the developer a question!
« Reply #322 on: September 11, 2010, 02:17:01 PM »
Are you capable of removing the character limit on the signatures?

Yes. (I just increased it to 400 from 300.)

Offline bugfartboy

  • White Cape
  • ***
  • Posts: 1729
    • View Profile
Re: Ask the developer a question!
« Reply #323 on: September 11, 2010, 02:32:46 PM »
Do you have more moves for Duvalier planned in the future in terms of affinities?

Offline ArtDrake

  • Black Cape
  • ***
  • Posts: 725
    • View Profile
Re: Ask the developer a question!
« Reply #324 on: September 12, 2010, 07:41:36 AM »
Okay, watch out. This code is REALLY unorganized.

[spoiler=Code]
Code: [Select]
package {
import flash.display.MovieClip;
import flash.utils.Timer;
import flash.events.TimerEvent;
import flash.display.SimpleButton;
import flash.text.TextField;
import flash.events.MouseEvent;
public class TestingArena extends MovieClip {
public var rocket:RocketPiece = new RocketPiece();
public var firstTimer:Timer = new Timer(50, 120);
public var i:Number = 0;
public var btnTurnLeft:MyButton = new MyButton();
public var t:Timer;
public function TestingArena(){
btnTurnLeft.x = 300;
btnTurnLeft.y = 50;
btnTurnLeft.addEventListener(MouseEvent.CLICK, onTurnLeftStart);
addChild(btnTurnLeft);
firstTimer.addEventListener(TimerEvent.TIMER, spinDemo);
trace(rocket);
addChild(rocket);
rocket.x = 100;
rocket.y = 100;

firstTimer.start();
firstTimer = null;
}
public function spinDemo(t:TimerEvent):void {
trace(i);
if (i < 36){
rocket.rotationZ += 10;
}
if (i < 72){
rocket.rotationY += 10;
}
if (i < 108){
rocket.rotationX += 10;
}
i += 1;
}

public function onTurnLeftStart(m:MouseEvent):void {
i = 0;
var t:Timer = new Timer(50, 110);
t.addEventListener(TimerEvent.TIMER, onTurnLeft);
t.start();
}

public function onTurnLeft(timerEvent:TimerEvent):void {
var mytimer:Timer = t;
if (i < 108){
rocket.rotationX += 10;
}
i += 1;
if (i > 108){
mytimer = null;
}
}
}
}
[/spoiler]

Offline Zackirus

  • Black Cape
  • ***
  • Posts: 713
  • Oh Canada!
    • View Profile
Re: Ask the developer a question!
« Reply #325 on: September 12, 2010, 10:30:46 AM »
How did you come up with the name: Sinister Design?
If The World Was A Bit More Like Canada, Then We Would Have A Great World, And Hockey 24/7

- Lord Canada

Offline CraigStern

  • The Creator
  • Administrator
  • General
  • *****
  • Posts: 3791
    • View Profile
    • Sinister Design
Re: Ask the developer a question!
« Reply #326 on: September 12, 2010, 10:31:05 AM »
Duckling: you never reset your i variable in the spinDemo function. It hits 144 and just keeps counting upwards.

Try adding this after i += 1;

Code: [Select]
if ( i > 144 ) {
     i = 0;
}

Offline CraigStern

  • The Creator
  • Administrator
  • General
  • *****
  • Posts: 3791
    • View Profile
    • Sinister Design
Re: Ask the developer a question!
« Reply #327 on: September 12, 2010, 10:35:20 AM »
How did you come up with the name: Sinister Design?

It's a play on words, meaning both an evil intent or plan and something designed. When I first thought the name up, I thought it might be fun to release each game with the tagline "This game is a product of sinister design!" as if it were being denounced by a horrified preacher. :)

Offline Zackirus

  • Black Cape
  • ***
  • Posts: 713
  • Oh Canada!
    • View Profile
Re: Ask the developer a question!
« Reply #328 on: September 12, 2010, 10:39:02 AM »
Do you mind telling us a bit more about these new playable characters you have in-store for us.
If The World Was A Bit More Like Canada, Then We Would Have A Great World, And Hockey 24/7

- Lord Canada

Offline CraigStern

  • The Creator
  • Administrator
  • General
  • *****
  • Posts: 3791
    • View Profile
    • Sinister Design
Re: Ask the developer a question!
« Reply #329 on: September 12, 2010, 10:44:47 AM »
I don't want to spoil the surprise. ;)