Game help

I am a total noob and I am making a RPG/fps… so u could imagine I am running into a lot of problems:). I will post problems I have here… so ur help would b appreciated. Also, any other people out there with problems can post here if they want. I could learn from those!! :smiley:

well heres my first bug… How do I make the gun only shoot once, then have to b cocked, b4 shooting again (its an old fashon rifle) then have an ammo limit so u cant just shoot 4ever.

Make a property integer called clip

when the gun fires, -1 from property clip

at the end of reload, +1 to clip

and to fire, clip must be greater than or equal to 1

hey thanks… i have been thinking of that but never quite figured out how to use property values… so thx.
ok new question… already… how do I make it so that when u come up to a vehicle in the game and press E, 4 example, U get in the car and controll the car instead of the person?

I would do it like in the image

Change the “control” property to 1 to control the vehicle, 0 to control the person

Attachments


Try using states instead of properties (they’re the boxs on the controller).

Also, try googleing some stuff when you have questions.

Ug. well I haven’t really done much updating in my knowledge of the game engine for a while=P

I guess it’s time to learn states

What exactly do they do? I’ve always been confused about them

Riigghhttt.:eek:

This Tutorials for blender page explains it all. :slight_smile:

http://www.tutorialsforblender3d.com/GameDoc/LogicBricks/StateSystem_1.html

hey great thx… thats much easier. :slight_smile: I would also like to learn about making enemy AI, and possibly a walk cycle for them. I have seen a tutorial on making AI on this site by Mph! but it doesnt say how to make them shoot at the player, it just tells how to make them follow a path… any help?