Jump to content


Photo

Score above the player's head


  • Please log in to reply
25 replies to this topic

#21 twelveways

twelveways

    GMC Member

  • GMC Member
  • 1383 posts

Posted 26 October 2011 - 06:40 AM

draw event, not create
  • 0

#22 Scaric101

Scaric101

    GMC Member

  • New Member
  • 23 posts

Posted 26 October 2011 - 06:48 AM

Nope, it does not work. The text isn't appearing on the screen. Maybe I have to set the text up someway
  • 0

#23 Scaric101

Scaric101

    GMC Member

  • New Member
  • 23 posts

Posted 26 October 2011 - 08:29 AM

Information about object: Score

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

Draw Event:
set the drawing color to 255
set the font for drawing text to Scoring and align center
at position (view_xview,view_yview) draw the value of score with caption

Here is some more additional information, thanks everyone for helping me but the last prob is half of the score is hidden the other half is shows. E.g. Instead of showing Score:10 it shows re:10. Have anyone got any suggestions?
  • 0

#24 Scaric101

Scaric101

    GMC Member

  • New Member
  • 23 posts

Posted 26 October 2011 - 12:19 PM

Guys, never mind, I have figured it out on my own, do the platform game tutorial
  • 0

#25 Turtle1

Turtle1

    GMC Member

  • New Member
  • 68 posts

Posted 27 October 2011 - 07:13 PM

Here is some information about what you said to do


Information about object: Score

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

Create Event:
execute code:

draw_text(view_xview[0],view_yview[0]-14,score)


bumbing rule...


i try to find out i don't know d&d though....
  • 0

#26 Turtle1

Turtle1

    GMC Member

  • New Member
  • 68 posts

Posted 27 October 2011 - 07:19 PM

Here is some information about what you said to do


Information about object: Score

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

Create Event:
execute code:

draw_text(view_xview[0],view_yview[0]-14,score)



in the draw event


insert the draw score option (mark relative!)

put in the x,y things

put this in the obj that you want the score to be above


you might have to play around with the x,y


SRY THOUGHT YOU HAD STANDARD :dry:

:cool:



:whistle:

Edited by Turtle1, 27 October 2011 - 07:20 PM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users