Thread: Fps help
View Single Post
Old
Dameria
Senior Member
 
Dameria's Avatar
 
Status: Offline
Posts: 978
Join Date: Sep 2009
Location: United States
Default 05-21-2010, 10:42 PM

No that shouldn't be the reason. The world.ammo variable should be working as the bullets, the bullet object itself won't really matter much unless you use it as a collision detection to determine when something is hit (although there are other ways to do bullet collision without using actual bullets, but both ways have their pros and cons, so stick with bullets for now). Are you sure you made "ammo" a world variable and not a method variable?

EDIT: You will want to create your own custom movements for moving the camera, because you will not be able to stop it if you use the "let arrow keys move camera". I have to go in 10 minutes, but I will help more tomorrow. You can check some of my recent worlds on how to create custom events to move the camera, just look at the events bar and see how I did "While (up arrow) is pressed, move camera forward 0.1 meters duration 0 seconds" (the duration has to be 0 in order to prevent a world stopping error (I don't know why it produces an error, but it does, and the 0 stops it from doing that)) You can enter in any number for 0.01 to make it go faster or slower.


Check out my best projects so far and please comment:

Tic-Tac-Toe 2.0 ................... http://www.alice.org/community/showthread.php?t=3548
Alice Paint ........................... http://www.alice.org/community/showthread.php?p=23408
Real-Time Clock .................. http://www.alice.org/community/showthread.php?p=12725
Maze Game ......................... http://www.alice.org/community/showthread.php?t=4301

Last edited by Dameria; 05-21-2010 at 10:50 PM.
   
Reply With Quote