Computer Science Canada * Character |
Author: | upthescale [ Mon Apr 03, 2006 7:07 pm ] |
Post subject: | * Character |
how do i do it so when the user has an input, instead of seeign wtu they write, u see a * instead of the letters they used..? |
Author: | TokenHerbz [ Mon Apr 03, 2006 7:28 pm ] | ||
Post subject: | |||
let see, perhaps we can try getting the input, and instead of putting the variavle, we put "*"... lets try somthin like:
Ofcoure you can get more specific, like take out backspaces: etc: Ill let you try to figure it out though, if you need help just ask! |
Author: | upthescale [ Mon Apr 03, 2006 7:31 pm ] |
Post subject: | |
it's fine man thanks tho yo ur a goodg uy....cud u tell me how to make a ball on the screen and bounc in a direction when it hits the top of the scren or bottom? |
Author: | TokenHerbz [ Mon Apr 03, 2006 7:49 pm ] | ||||||
Post subject: | |||||||
Programming is about thinking... See you have to plan how your programs going to work befor you make it... So if you want a ball to bound off the wall, which lets say is the left wall, thats at the x chord 0 right? now, we need the balls chords..
so now we can trace and draw the ball, useing its chords: We need a speed variable which workds to "ADD" so much pixles to move the ball right / up, or +Minus+ them, to make it go left / down.
Lets start that ball 100 frames away from the xwall (0) and move it left to bounce off... we would need to reverse the direction by making the xspeed from neg to positive, we do this my timesing it by -1
Try to get it to bounce off the right side, top, and bottom |
Author: | upthescale [ Mon Apr 03, 2006 8:14 pm ] |
Post subject: | |
thx man [mod:059924824e="Cervantes"] Conduct private matters privately, though the PM system, or over some other form of communication. Look at the nice little buttons under his post for ways to contact him. [/mod:059924824e] |