I have to question:
First, when you add an overlay to a mob, when the mob moves, will the overlays change there icons to match the direction (if the overlay it an icon that changes direction)
Second, how do you use : and ?
ID:172740
Apr 3 2004, 12:32 pm
|
|
ok, can someone give me an exemple when to use : and can someone answer my first question?
| |
FranquiBoy wrote:
ok, can someone give me an exemple when to use : and can someone answer my first question? Use : whenever you do a shorthand if with ? For example:
And concerning your first question, try it yourself and see. For some reason I think that it does, though. | ||
First, you don't use ":" as a replacement for "."
There are very few situations where you'll actually *need* to do so.
? is used to do a quick if() statement as follows:
condition ? DoIfTrue : DoIfFalse