1 registered members (M_D),
1,430
guests, and 3
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: confused about c script, lite c, wdl
[Re: Scorpion]
#157898
10/02/07 10:26
10/02/07 10:26
|
Joined: May 2006
Posts: 398
Bot190
Senior Member
|
Senior Member
Joined: May 2006
Posts: 398
|
you could just do it like this, i think. Code:
Function RotateMe() { my.pan += 2 * time_step; }
on_a = Rotate_Me();
Wait, there isn't a "Make My Game Now" button?
|
|
|
Re: confused about c script, lite c, wdl
[Re: adoado]
#157900
10/02/07 11:28
10/02/07 11:28
|
Joined: Sep 2007
Posts: 658 germany
Tiles
OP
User
|
OP
User
Joined: Sep 2007
Posts: 658
germany
|
Quote:
Programming is logical, once you know a bit about the structure and learn to think about a situation in a "programming" way - everything is easier and, everything will make sense
I made several 2D Games in the past, using an authoring tool. Still waiting for that bit
Let's have a logical look at it. The Function does noting until it is called, correct? Nothing endless because nothing performed. I have to press "a" to call the function. And then the Function is performed. When called i need it to be endless though. Because i want to rotate the object as long as i press the "a" key.
With your way the function is always called. Just that the "a" button isn't pressed. And so it doesn't rotate. Yes, it's just this little "While" line that i logically save compared to my method. At least from what i understand. But i search the best way here. Maye a bit too ambitious for now
For the alternative way, well i tried that before. Was one of the first things. As told, i tried everything that could somehow work ...
What i wonder a bit is that there seems to be no standard solution. This is a standard problem in my opinion. I simply want to control an object by keyboard keys to fly around with an airplane for example.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|