problem in lesson 21

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
User avatar
hugebaozi
Posts: 22
Joined: August 3rd, 2012, 2:30 am

problem in lesson 21

Post by hugebaozi » August 10th, 2012, 3:33 am

Help~~
there is no time or number of sprites showing on my screen.
Attachments
font.rar
(6.96 MiB) Downloaded 148 times

User avatar
XxWalKaxX
Posts: 244
Joined: June 11th, 2012, 7:15 pm

Re: problem in lesson 21

Post by XxWalKaxX » August 10th, 2012, 3:55 am

i'd help but for some reason i can download everyone else code but everytime i download yours the whole things fails
What you call a bug...I call a new feature!

User avatar
hugebaozi
Posts: 22
Joined: August 3rd, 2012, 2:30 am

Re: problem in lesson 21

Post by hugebaozi » August 10th, 2012, 4:01 am

XxWalKaxX wrote:i'd help but for some reason i can download everyone else code but everytime i download yours the whole things fails
because i used vs 2012 ?

User avatar
XxWalKaxX
Posts: 244
Joined: June 11th, 2012, 7:15 pm

Re: problem in lesson 21

Post by XxWalKaxX » August 10th, 2012, 4:57 am

i dont think my messages are sending
What you call a bug...I call a new feature!

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: problem in lesson 21

Post by LuX » August 10th, 2012, 9:14 am

@XxWalKaxX

Open the project settings, go to "Configuration Properties->General" and change the platform toolset from "v110" to "v100" or select "inherit from...."

You might also need to reimport the directx includes and libraries.


@hugebaozi

I think the problem is that you are loading the font on a separate surface, but when you draw a character you are using the fonts own surface, which in this case has no size nor any pixels on it.

Are you sure you followed the tutorials?

Well, what ever.

What you need to do is, on your load font function, allocate the font->surface and then when you send the load font on bitmap, send the fonts surface and get rid of your separate font surface. You don't need it.
ʕ •ᴥ•ʔ

Post Reply