Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C
My Carrier: Rogers

Animation of coin spining

[ Edited ]

ok so i understand animation enough to add the feature but am i missing something. If i want to make i coin spin. how would i create my code 

 RotateTransition {
            toAngleZ: 180
            duration: 1000
            fromAngleZ: 0.0
        }

 how do i chose the different axels

TranslateTransition {
            toX: 100.00
            duration: 1000
            fromX: 10.0
            toY: 0.0
            fromY: 0.0
        }

 will i need to add these to make it work.

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality
Retired
Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha
My Carrier: N/A

Re: Animation of coin spining

Hi there,

 

Have you looked at the 'Animation' page in the cascades cookbook sample application?

It may point you in the correct direction;

 

Martin

 

Developer
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C
My Carrier: Rogers

Re: Animation of coin spining

[ Edited ]

I have this has show me a lot on the Y axel but not the X axel. I can get the image I want to rotate but it only does it on the  Y axel. Are the api's for this out yet.

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality
Highlighted
Developer
Posts: 304
Registered: ‎08-14-2012
My Device: PlayBook, Z10, Dev C
My Carrier: Rogers

Re: Animation of coin spining

I was given this but was told this might work but ill need to make some changes 

 

http://qteveloper.blogspot.ca/2010/07/qt-creator-20-exercise-updown-counter_01.html

 

void MainWindow::on_pushButtonClear_clicked()
{
  counterValue = 0;
  ui->Counter->setText(QString().setNum(counterValue));
}
 
void MainWindow::on_pushButtonUp_clicked()
{
  counterValue++;
  ui->Counter->setText(QString().setNum(counterValue));
}
 
void MainWindow::on_pushButtonDown_clicked()
{
  counterValue--;
  ui->Counter->setText(QString().setNum(counterValue));
}
 
void MainWindow::on_pushButtonQuit_clicked()
{
  close();
}

 

 

 

qt has me a little loss

BlackBerry 10 game reviews for the unknown, small and indie developers. Little games with big dreams. VeryBerryGames.com | Follow @VeryBerryGames | TwoCasualCoders.com | never casual on quality