IvanGS Posted June 17, 2009 at 02:40 PM Report Share #273084 Posted June 17, 2009 at 02:40 PM boa tarde venho mais uma vez chatear ? é assim estou a acabar o jogo da cobra em flash e queria adicionar uma opção q é o nivel de dificuldade ou seja tem botoes em baixo e ao clicar neles irá alterar a velocidade de jogo q e os fps e qero alterar isso por ActionScript. Alguma ajuda? Link to comment Share on other sites More sharing options...
yarcub Posted June 17, 2009 at 02:45 PM Report Share #273088 Posted June 17, 2009 at 02:45 PM stage.frameRate = 30; Link to comment Share on other sites More sharing options...
IvanGS Posted June 17, 2009 at 02:52 PM Author Report Share #273092 Posted June 17, 2009 at 02:52 PM nao funcionou meti assim on (press){ stage.frameRate = 120; } Link to comment Share on other sites More sharing options...
yarcub Posted June 17, 2009 at 02:58 PM Report Share #273095 Posted June 17, 2009 at 02:58 PM Não especificaste em que versão estás a programar. 😉 O que indiquei é para AS3, o que tens é AS2. Lamento informar, mas em AS2 (AVM1) não é possível modificar a frame rate programaticamente. O que podes fazer? Em vez de utilizares o EnterFrame, cria um função que corra de x em x segundos e quando queres aumentar a velocidade diminuis o intervalo de tempo. http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001766.html Link to comment Share on other sites More sharing options...
IvanGS Posted June 17, 2009 at 03:25 PM Author Report Share #273105 Posted June 17, 2009 at 03:25 PM tou a utilizar AS 2.0 =S Link to comment Share on other sites More sharing options...
pouic Posted June 18, 2009 at 08:49 AM Report Share #273264 Posted June 18, 2009 at 08:49 AM Para evitar este tipo de confusões foi criado um tópico nesta área... Recomendações para esta Área Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now