PDA

View Full Version : Basic FPS Engine


JAA
07-10-2010, 06:30 PM
For my second Alice world I have made a basic FPS engine which includes collision detection.
Controls:
A: Turn Left
W: Move Forward
D: Turn Right
S: Move Backward
Space: Jump
Click the revolver to make it shoot

I do need some help. It seems that sometimes there are dead zones for shooting the enemy, meaning if you are a certain distance a way even if you aim right at the enemy the hit doesn't register. I think it has to do with the bullet jumping instead of travling continuosly straight. The only solution I found was to slow it down. I wish I could make the bullet travel faster without having this problem. If anyone could help me I'd appreciate it. You can find the bullet's movement animation under it's method Bullet.InMotion.

I will continue to work on this world and make an advanced version that includes more actions, weapons, objects, and other things. Please feel free to give me suggestions.

Also if you havn't already, check out my first Alice world please. You can find it at this post.http://www.alice.org/community/showthread.php?t=4716

jediaction
07-11-2010, 02:39 PM
Its ok. good start. You should look at my Hero's Game for ideas

debussybunny563
07-23-2010, 04:04 PM
I do need some help. It seems that sometimes there are dead zones for shooting the enemy, meaning if you are a certain distance a way even if you aim right at the enemy the hit doesn't register. I think it has to do with the bullet jumping instead of travling continuosly straight. The only solution I found was to slow it down. I wish I could make the bullet travel faster without having this problem. If anyone could help me I'd appreciate it. You can find the bullet's movement animation under it's method Bullet.InMotion.

I will continue to work on this world and make an advanced version that includes more actions, weapons, objects, and other things. Please feel free to give me suggestions.

Also if you havn't already, check out my first Alice world please. You can find it at this post.http://www.alice.org/community/showthread.php?t=4716

Yeah, I had that same problem in my FPS too. High-velocity bullets don't register as well in the target. To (kind of) solve this, I also made the bullet go slower, and made four copies of the bullet (five total). Since I had an automatic weapon (just imagine how quickly the bullet went), I had to create the extra bullets so each individual bullet could travel slower (bullet1 move up 200 m, wait 0.1 sec, bullet 2 move up 200 m, etc.) and there was a cycle (I hope you get the idea).

You can find my FPS here:http://www.alice.org/community/showthread.php?t=4788