Jump to content


Photo

Can anyone help me here?


  • Please log in to reply
6 replies to this topic

#1 Artwark

Artwark

    GMC Member

  • GMC Member
  • 123 posts

Posted 24 March 2012 - 07:37 PM

Ok take a look at this gmk file.

http://www.2shared.c...ce_Void_M9.html


In the game, the ship stops after every 6 seconds, but now I want it to stop after 10 seconds and continue again after 10 seconds. Can anyone please help me here because my staff is taking too long to finish the game, aside the art and I really want to finish it.
  • 0

#2 Noele

Noele

    GMC Mentor

  • GMC Member
  • 2351 posts
  • Version:GM8.1

Posted 24 March 2012 - 07:52 PM

If all you are after is a simple timer you can use alarms.
alarm[0] = 10*room_speed; // gives a 10 second delay.
To create a go / stop every 10 seconds you can use:
Create Event
can_move = true; // initialize variable

Step Event
if(can_move){
  // your movement code here
}else{
  // your stop code here
}
if(alarm[0] == -1){
  alarm[0] = 10*room_speed;
}
Alarm 0 Event
can_move = !can_move; // toggle the state.

  • 0

#3 Artwark

Artwark

    GMC Member

  • GMC Member
  • 123 posts

Posted 25 March 2012 - 05:11 AM

I tired it but it didn't work. Can you please download my gmk file and show me what the problem is please? my friend did the programming so I have no idea what he did to some extent.... :sad:
  • 0

#4 witcher

witcher

    GMC Member

  • GMC Member
  • 396 posts
  • Version:Unknown

Posted 25 March 2012 - 07:05 AM

http://www.2shared.c...ce_Void_M9.html
  • 0

#5 Artwark

Artwark

    GMC Member

  • GMC Member
  • 123 posts

Posted 25 March 2012 - 12:17 PM

http://www.2shared.com/file/lWvLJNV4/Space_Void_M9.html


Ghee thanks man but the thing is its suppose to stop after 10 seconds and start after 10 seconds. So can you just tell me how to do that?
  • 0

#6 witcher

witcher

    GMC Member

  • GMC Member
  • 396 posts
  • Version:Unknown

Posted 25 March 2012 - 12:27 PM

Go to alarm 4 and 5 of object spaceship the alarm is set to 180 steps change that to 300 steps
  • 0

#7 Artwark

Artwark

    GMC Member

  • GMC Member
  • 123 posts

Posted 25 March 2012 - 04:34 PM

Ok It was too difficult to make the stunning part at the starting of the game to 10. So I decided to make it for eight seconds.

Now I have another problem.

http://www.2shared.c...e_Void_M10.html

The obj_booster battery will not complete the red part animation when the ship is stunned. Can anyone help me fix that? also can you also help me to make it stunned for eight seconds at the starting of the game also? I really need that part alone badly....
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users