Jump to content


Photo

Blowing Bombs With mouse click


  • Please log in to reply
28 replies to this topic

#21 NukeTheCat

NukeTheCat

    GMC Member

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

Posted 27 February 2012 - 07:53 PM

Oops! I think I got it mixed up, your supposed to change numb into how long you want your list to be. For example: if you want the top 10 names to be displayed type '10' instead of numb

Almost forgot about the word 'Time's out' in box
Use this code in the Draw event
//same: this draw the color rectangle
draw_rectangle_color(x-48,y-50,x+48,y+10,c_ltgray,c_ltgray,
c_gray,c_gray,0);

//same: this draws the button
draw_sprite(button sprite,sprite_index,x,y);

//new: this is the outline. Notice the '1' at the last argument? That's to indicate that it an outline.
//for a filled rectangle type '0' instead
draw_rectangle_color?(x-49,y-51,x+49,y+11,c_black,c_black,c_black,c_black,1);

//new: first line is the font, second line is for the colour, and finally the text which is very useful
draw_set_font(yourfont)
draw_set_color(c_black)
draw_text(x-24,y-25,"Times's Out!");
//you can change the color to a new one, also you have to add your font for he time out message. 
//You can change the 'x' and 'y' in the draw_text to your preferance
//Plus I added an outline cause I thought it looks plain without one
//you can erase all these comments because they are the ones taking all the space. :P

For the fog of war... um... I have no idea!
I have to experiment to figure this one out.

Edited by Jlm07, 27 February 2012 - 07:56 PM.

  • 1

#22 Zealot644

Zealot644

    GMC Member

  • New Member
  • 266 posts
  • Version:GM8

Posted 27 February 2012 - 08:13 PM

For the fog of war... um... I have no idea!
I have to experiment to figure this one out.


For fog of war, I'd assume you could create a 'fog of war' object that is removed when a collision occurs?

A better explanation of fog of war is basically it serves as an area of 'unknown' to the player. When you move something such as a unit (typical in RTS games) towards the fog of war, it begins to remove a portion of it in the path that the unit is going, thus revealing what was previously unknown.

Edited by Zealot644, 27 February 2012 - 08:14 PM.

  • 0

#23 DevilSir

DevilSir

    GMC Member

  • New Member
  • 17 posts
  • Version:GM8

Posted 27 February 2012 - 08:16 PM

Thanks for everything :thumbsup:

Edited by DevilSir, 27 February 2012 - 08:18 PM.

  • 0

#24 DevilSir

DevilSir

    GMC Member

  • New Member
  • 17 posts
  • Version:GM8

Posted 27 February 2012 - 09:25 PM

Oops!


But how to do it ? my timer is like this:



Information about object: obj_timer_score

Sprite: <no sprite>
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>

Create Event:
set variable time to 5
set Alarm 0 to 30

Alarm Event for alarm 0:
set variable time relative to -1
if time is smaller than 0
      display message: Times Up!!!
      show the highscore table
    background: background5
     show the border
     new color: 16777215, other color: 16777215
     Font: Terminal,14,0,1,0,0,0
      go to room level1 with transition effect Blend
else
      set Alarm 0 to 30

Draw Event:
      at position (343,0) draw the value of: time
      at position (272,0) draw text: Time Left:
      set the drawing color to 4900848
      set the font for drawing text to fnt_1_score and align left

i think its messed up coz i got score+timer at same obj :wacko:
  • 0

#25 DevilSir

DevilSir

    GMC Member

  • New Member
  • 17 posts
  • Version:GM8

Posted 27 February 2012 - 09:27 PM

:GM023: | :GM073: :GM040:

:GM125: | :GM063: :GM073: :GM072: :GM078: :GM044: :GM040: :GM064: :GM066: :GM037:

:GM131: | :GM074:

Edited by DevilSir, 27 February 2012 - 09:27 PM.

  • 0

#26 DevilSir

DevilSir

    GMC Member

  • New Member
  • 17 posts
  • Version:GM8

Posted 27 February 2012 - 09:29 PM

:GM063: :GM120: :GM119: :GM110::GM066:
  • 0

#27 NukeTheCat

NukeTheCat

    GMC Member

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

Posted 28 February 2012 - 05:20 AM

You got the arrangements mixed up

:GM040: | :GM072: :GM073: :GM063: :GM044: :GM078: :GM037: :GM066: :GM064: :GM063: :GM040: :GM066:
  • 1

#28 NukeTheCat

NukeTheCat

    GMC Member

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

Posted 28 February 2012 - 08:33 AM

Ok, here is the Fog of War script I created:

http://www.mediafire...u16vn885iccqdv6
  • 1

#29 DevilSir

DevilSir

    GMC Member

  • New Member
  • 17 posts
  • Version:GM8

Posted 28 February 2012 - 07:54 PM

Ok, here is the Fog of War script I created:

http://www.mediafire.com/?u16vn885iccqdv6

Thaaaaaaaaaaaaaaaaaaaaaaaanks you are awesome!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :ohmy:
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users