Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Jimmy

#1
thx to scorp for helping last time.
Anyway, when i press the right mouse button, it changes to walk cursor and starts a timer. When the timer expires it is suppose to change back to look cursor. But it doesn't unless i press the left mouse button once again. y?

Oh, it's a shooter game, ammo engine thing.

btw any suggestions on my scripting would be nice.



int chooser;
int mouse_clicks = 0;

function on_mouse_click(int button) {
// called when a mouse button is clicked. button is either LEFT or RIGHT
if (IsTimerExpired(9)==1){      //when the reload timer is up
 mouse_clicks = 0;
 EnableCursorMode(MODE_LOOK);
 SetCursorMode(MODE_LOOK);
 SetObjectGraphic(3,10);
 }

if (IsGamePaused() == 1) {
// Game is paused, so do nothing (ie. don't allow mouse click)
}
else if (button==LEFT) {
ProcessClick(mouse.x, mouse.y, GetCursorMode() );
mouse_clicks = mouse_clicks + 1; // increasing mouse click counter
if (mouse_clicks < 9) {
PlaySound(1);
}
if (mouse_clicks == 0) {
 SetObjectGraphic(3,10);
 SetCursorMode(MODE_LOOK);
 }
if (mouse_clicks == 1) { //changes graphics with number of
 SetObjectGraphic(3,11);//clicks. Changes the ammo thing.
 }
if (mouse_clicks == 2) {
 SetObjectGraphic(3,12);
 }
if (mouse_clicks == 3) {
 SetObjectGraphic(3,13);
 }
if (mouse_clicks == 4) {
 SetObjectGraphic(3,14);
 }
if (mouse_clicks == 5) {
 SetObjectGraphic(3,15);
 }
if (mouse_clicks == 6) {
 SetObjectGraphic(3,16);
 }
if (mouse_clicks == 7) {
 SetObjectGraphic(3,17);
 }
if (mouse_clicks == 8) {
 SetObjectGraphic(3,18);
   SetTimer(9, 50);
 SetCursorMode(MODE_WALK);
 DisableCursorMode(MODE_LOOK);
 mouse_clicks = 10;
 }
}

else { // right-click, so cycle cursor
 SetTimer(9, 50);
 SetCursorMode(MODE_WALK);     //when right clicked re-loads
 DisableCursorMode(MODE_LOOK); //sets the time it
 mouse_clicks = 10;                         //to reload
}

}
#2
I'm making this shooter where you have limited ammo, so is it possible? If so, how do i do it?
#3
Advanced Technical Forum / mod music problem!
Fri 23/01/2004 01:08:55
ok, when i saved my game and then loaded it the backround music speed was very slow.

Everytime the music was at the middle this happened. In the beginnig of the music it didn't though.

#4
How do you move a object without making the game busy?
#5
If i wanted a object to wait a few seconds before doing the next command how do i do that? I also want the player to be able to move while thats happening.
#6
I'm making this game and i'm up to this bit where knives come down from above. You can dodge 'em.

How do i make it so that the knives can come down, you can move freely and if the knives touch you, you die.
#7
How do you change the icons of the .exe from the cup to something else?
SMF spam blocked by CleanTalk