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

ArtDrake

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.

Ertxiem

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.

Xemadus Echina

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.

Duskling

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

.:Light-God:.

What characters are you planning on making in TSOG?

CraigStern

Wow--kind of a backlog here, huh? All right, let's get to it:

QuoteWhat'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.

QuoteIs 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.

Quoteare you completely buried in work?

A bit, yeah. :'(

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

Nope.

QuoteWhat characters are you planning on making in TSOG?

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

bugfartboy

Are you capable of removing the character limit on the signatures? Or is that just part if using SMF?

CraigStern

Quote from: Arch Preist of Craiginism on September 11, 2010, 04:13:43 PM
Are you capable of removing the character limit on the signatures?

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

bugfartboy

Do you have more moves for Duvalier planned in the future in terms of affinities?

ArtDrake

Okay, watch out. This code is REALLY unorganized.

[spoiler=Code]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]

Zackirus

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

CraigStern

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;

if ( i > 144 ) {
    i = 0;
}

CraigStern

Quote from: Zackirus on September 12, 2010, 12:30:46 PM
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. :)

Zackirus

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

CraigStern

I don't want to spoil the surprise. ;)