| ~Hakurei Shrine~ > Rika and Nitori's Garage Experiments |
| Some noobish questions |
| << < (2/6) > >> |
| Cyclone722:
Ok, thanks. How would I set a variable to track the boss's life? |
| Stuffman:
Actually I'm pretty sure SetShotDirectionType(PLAYER) DOES track from bullet to player. It's GetAngleToPlayer that can only do boss-to-player. Still, it doesn't hurt to know the actual formulas. --- Quote ---How would I set a variable to track the boss's life? --- End quote --- variable = GetEnemyLife(); Or heck you don't even need a variable, you can just stick GetEnemyLife() wherever you would use that variable. |
| Cyclone722:
ok, how do you get a random number (ex. random angle, x or y point) I'm not overly diligent about danmakufu if you haven't noticed. Anyway, if this is in another thread/tutorial, could you point me in the right direction? |
| Stuffman:
--- Code: ---i = rand(minimum number, maximum number); --- End code --- rand generates numbers that can have decimals, use rand_int if you want only whole numbers. You can also stick rand anywhere you would need to put a number, like: --- Code: ---CreateShot01(GetX,GetY,3,rand(0,360),RED01,0); --- End code --- |
| Cyclone722:
hmm, Guess I just had a space wrong or somthing... thanks. |
| Navigation |
| Message Index |
| Next page |
| Previous page |