The Daily Click ::. Forums ::. Klik Coding Help ::. Score on screen doesn't stay where I want it to
 

Post Reply  Post Oekaki 
 

Posted By Message

jimbo666



Registered
  13/09/2005
Points
  11
8th October, 2005 at 09:49:51 -

I'm writing a scrolling shoot em up using tgf. The space ship stays in the centre of the screen. But my score counter and energy bar either disappear completely or appear in a random place when I run the game. I've got "follow playfield" unchecked. The score and bar just won't stay put where I place them (bottom left of scren ) Any idea why this happens. I've changed the font of the score and customised the counter for the health.
Driving me mad. Anyone?

 
n/a

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
8th October, 2005 at 12:32:33 -

I think I'd have to see the .gam file - unchecking "follow playfield" seems the obvious answer, but you said you'd done that.

 
http://www.davidn.co.nr - Games, music, living in America

The Chris Street

Administrator
Unspeakably Lazy Admin

Registered
  14/05/2002
Points
  48488

Game of the Week WinnerClickzine StaffAcoders MemberKlikCast StarVIP MemberPicture Me This Round 35 Winner!Second GOTW AwardYou've Been Circy'd!Picture Me This Round 38 Winner!GOTM December Third Place!!
I am an April FoolKliktober Special Award Tag
8th October, 2005 at 12:48:38 -

Always: set x position to x left frame + 32
set y position to y top frame + 32

Something like that should do it - amend the numbers to position the image exactly how you want it.

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
8th October, 2005 at 13:25:17 -

Is this to do with hotspots? Since your counter is customised. But in this case only when the counter chaged will the placement change.
otherwise you could upload the file and one of us will take a look.

 
.

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
8th October, 2005 at 19:05:47 -

Make sure you are putting it in the bottom left of the screen and not the frame. Try putting it in the top left of your frame, if it stays there then you're not placing it correctly.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
   

Post Reply



 



Advertisement

Worth A Click