We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello... I have main class. It ofcourse containse Draw(fps 24),setup... in Main draw i call funtion enemy.draw(); Enemy draw i have animation which i need to slow down rapidly...Something around 4+/- fps (I want to slow it down , not to make it laggy). Can you guys help me please? Thnaks :)
Answers
Not without you posting your code.
Can you open up task manager and see if the memory of the application fills up fast?
How does your sketch determine how fast the animation is drawn? Without seeing your code (or some example code demonstrating your issue) it is very hard to help you.
Platform game
The draw function in Enemy class doesnt have to be draw...It can be nammed like enemyMovemenet(){}.. But i still need to slow it down because its still called in Main draw 24 times a sec
So instead of having draw() draw your enemy every frame, you could make it only draw it every 24 frames.
Wrong, if you call frameRate() in any class, it's still going to impact the whole sketch. You'll need some trickery, like TfGuy44 says.
I have 2d array... Every time enemy moves +1 width (for cycle J).. so it moves 24 times a sec... i want it to move like one "block" per sec
i cant change frameRate of main draw... I have Player animation inside too... I need that to run in 24fps and enemy animaton lower fps..
Forget about setting the frame rate at all. Have each object maintain a time when it is to next be updated.
Thats the thing that i wanted:) Thank you