![]() |
Projectile range
Stefan asked me to post it here, so he won't forget it I guess ;)
A new parameter for the shoot() function would be awesome, something that defines the range of the projectile. In tiles, maybe, or something else. This would be super useful :D |
Agreed!
|
I'm not following?
Either way, I can think of a million parameters that would be great for projectiles. Speed, whether it stops when it hits a wall, and some other stuff I can't remember. Not quite a million, but I'm only a few short. |
Quote:
|
Quote:
|
Perhaps have a different way of creating projectiles if people think shoot() is getting too large?
proj = player.level.projectile; proj.ani = "iceprojectile"; proj.aniparams = {0, 0, 1, 0.5}; proj.dir = 3; proj.x = player.x + 1; proj.y = player.y + 1; proj.z = 0; proj.variable = value; //etc... proj.shoot(); Sort of like how the particle emitter is working. |
would also be nice if there was an array of projectiles in the level.
PHP Code:
|
level.projectiles
:) |
Quote:
|
Already exists. It's read-only though, or at least most of it is. It's not an array either, it's an object... eh, but it's there. I don't remember details of it though, but it's something to mess with.
I like Inver's idea of being able to make projectiles out of objects. |
Quote:
|
All times are GMT +2. The time now is 03:48 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.