Computer Science Canada Platform Game Help |
Author: | Turing Man [ Tue Nov 16, 2010 9:05 pm ] | ||
Post subject: | Platform Game Help | ||
What is it you are trying to achieve? Well. I am new to Turing. I am taking a Grade 10 course on it. I have just came across one little small thing. It may seem stupid to you higher people. But here it is. I need to know how to set a max high to jump, and I would also like to know how to add Borders so my sprite cannot go off screen on the x axis. Help would be appreciated. Thank you. ![]() -- Ray Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Please specify what version of Turing you are using <Answer Here> |
Author: | TokenHerbz [ Wed Nov 17, 2010 12:57 pm ] | ||
Post subject: | RE:Platform Game Help | ||
below is the concept of what to do and how it works. read it carefully.
|
Author: | TerranceN [ Wed Nov 17, 2010 3:52 pm ] |
Post subject: | RE:Platform Game Help |
If what the OP means is making it so you cannot jump infinitely, then just think of it like real life. What is the biggest condition required for jumping? It is having something to jump off of. You can tell when the person (or w/e your picture is) is on the ground by when it is able to fall. Use a boolean value to only allow the person to jump when it is on the ground. |
Author: | Turing Man [ Wed Nov 17, 2010 4:10 pm ] |
Post subject: | RE:Platform Game Help |
Thank you everybody. But I figured it out on my own ![]() But I did take your border idea Token. Thanks. -- Ray |