I can't seem to get the projectile icon to display how I want when fired. Like So:
P = Player
O = Projectile
P
|
|
|
|
O
It's misaligned on the map grid.
Thanks for the help, or collaboration.
ID:273928
![]() Sep 3 2011, 10:48 am
|
|
![]() Sep 3 2011, 12:08 pm
|
|
You want a trail you mean?
|
I would imagine you need to set the projectile's offsets to be the same as yours when you fire, otherwise they just line up with the grid.
|
A. Ness wrote:
Can I get an example? projectile.step_x = player.step_x projectile.step_y = player.step_y |
Example:
obj/Projectile It won't work this way. |
A. Ness wrote:
Example: > obj/Projectile It won't work this way. How do you call new()? You're properly passing the shooter as Owner? What specifically is it not doing properly? |
obj/Projectile |
A. Ness wrote:
> obj/Projectile owner1 and owner are not the same variable. src doesn't need to be stated everywhere, it's assumed that an unlabeled variable belongs to src. This also doesn't tell me anything about how you CALL new(), it tells me how you defined it, though the owner1/owner variable mixup is probably causing trouble. Finally, why do you stack everything with semicolons like that? It's ugly and makes your code more obnoxious to read. |