Lesson 8... problem drawing the FACE!

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
ZeroWard
Posts: 3
Joined: October 13th, 2012, 6:03 pm

Lesson 8... problem drawing the FACE!

Post by ZeroWard » October 13th, 2012, 6:10 pm

i don't know what the problem is! i read the code one time after the other, but no luck, hope YOU can help! :idea:

DrawFace(int faceX, int faceY);

i get a "type name is not allowed" under the 'int' and "too few arguments in function call" under the 'faceX'

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Lesson 8... problem drawing the FACE!

Post by chili » October 13th, 2012, 10:55 pm

Try: DrawFace( faceX,faceY );
i.e., lose the 'int' parts.
Chili

ZeroWard
Posts: 3
Joined: October 13th, 2012, 6:03 pm

Re: Lesson 8... problem drawing the FACE!

Post by ZeroWard » October 14th, 2012, 4:38 pm

Thanks chili!! :D it worked! can you tell me whats the difference between the two lines of code? :? pleeeeease

User avatar
viruskiller
Posts: 399
Joined: June 14th, 2012, 5:07 pm

Re: Lesson 8... problem drawing the FACE!

Post by viruskiller » October 14th, 2012, 5:57 pm

u only using int before variables when u declare a function or when u declare those variables, when u passing they'r value u don't have to use int :)

ZeroWard
Posts: 3
Joined: October 13th, 2012, 6:03 pm

Re: Lesson 8... problem drawing the FACE!

Post by ZeroWard » October 14th, 2012, 7:31 pm

i thought as much after reading it again... slow learner i am -_- ... so thank you!!

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

Re: Lesson 8... problem drawing the FACE!

Post by XxWalKaxX » October 15th, 2012, 5:46 pm

This stuff can be confusing at first, but no worries, it will all come together one day and you'll typing your fingers off xD.
What you call a bug...I call a new feature!

User avatar
Derpy Dinosaur2o3
Posts: 24
Joined: October 20th, 2012, 1:38 am
Location: Australia

Re: Lesson 8... problem drawing the FACE!

Post by Derpy Dinosaur2o3 » October 20th, 2012, 1:43 am

chili wrote:Try: DrawFace( faceX,faceY );
i.e., lose the 'int' parts.
I was just wondering is there an easier way of adding sprites im only on lesson 8 so far but if you do end up showing a better way then please let me know
Paradox I LOVE EM

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

Re: Lesson 8... problem drawing the FACE!

Post by XxWalKaxX » October 20th, 2012, 2:58 am

just keep watching the tuts, chili teaches how to load bmp files
What you call a bug...I call a new feature!

User avatar
Derpy Dinosaur2o3
Posts: 24
Joined: October 20th, 2012, 1:38 am
Location: Australia

Re: Lesson 8... problem drawing the FACE!

Post by Derpy Dinosaur2o3 » October 22nd, 2012, 6:51 am

XxWalKaxX wrote:just keep watching the tuts, chili teaches how to load bmp files
Coooooolies i was getting worried there because i could not find any other tutorials on adding sprites and i didn't want to skip the tutorials and i also did not want to gfx.PutPixel all the time i think my brain would melt
Paradox I LOVE EM

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

Re: Lesson 8... problem drawing the FACE!

Post by XxWalKaxX » October 24th, 2012, 5:44 pm

lol some where on here is a program that Lux made that will take sprites and put to them into PutPixel for you, Chili demonstrates it in one of the tuts
What you call a bug...I call a new feature!

Post Reply