The Daily Click ::. Forums ::. Klik Coding Help ::. Help me please! again!! (Selecting cars and weapons)
 

Post Reply  Post Oekaki 
 

Posted By Message

-Messiah-



Registered
  26/06/2003
Points
  220
28th June, 2003 at 06:19:37 -

Well, i have 2 problems (again)
1.i wonnt to make so that u can choose cars, Like if you have 4 pics or cars infront of u then click on 1 then that car will be the one you will se in the game.... no one understands me so far eh..?
2.How do i do so i can change weapons.. biiiig problem!


 
What!?, a what!?.. Omg.. They'r' WASTED!

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
28th June, 2003 at 06:36:09 -

1) use Global Values.
i.e. User clicks on Car 1 > set global value 1 to 1
User clicks on car 2 > set global value 1 to 2


you will have to put all cars in all levels.
Then, in the levels do this event:
Global value 1 = 1 > create object "Car 1" at "where ever".
Global value 1 = 2 > create object "Car 2" at "where ever".

2) Change weapons in what way?
If you mean weapons for the car, and you want a random weapon like in Mario Kart, use a counter. and create a weopon pick-up.

Events:
Car collides with weapon pick-up > set counter to Random (10)
you can change the 10 to the amount of weapons you can have.

Then, put these events:
Counter = 1 + User presses Shift > Car 1 shoot an object "weapon one".

then just change the counter and weapon number and you should be able to shoot different objects.

 
My signature is never too big!!!

-Messiah-



Registered
  26/06/2003
Points
  220
28th June, 2003 at 06:45:07 -

Thanks Joe!

 
What!?, a what!?.. Omg.. They'r' WASTED!

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
28th June, 2003 at 06:49:10 -

No problem.

one thing, make sure that all the cars are controlled by player one.

Also, you could put all of the cars in the same position on the race track,
then do this:

Global value 1 = 1 > Car 1 visibiltity = Reappear. All other cars destroyed.

Then just change the global value, and change the car that shows up.

 
My signature is never too big!!!

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
28th June, 2003 at 20:26:35 -

Updated title. Please use descriptive topic names in the future.

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert
   

Post Reply



 



Advertisement

Worth A Click