Hi,
ok well i am using the grid 64*64 and i have run into a problem:
i have an object that has the turret function and drag and drop.
so i know that the image origin point is where the object rotates on , whilst using the turret behaviour
and that if the image origin is in the middle the object sits right in the middle of the 4 surrounding squares
- this however i don't want : i want the object to sit in the cell itself
but like i said if i do that the object will rotate around the image origin so what do i do?
this is the code i use to insure the object aligns with the grid:
+ Turret1: On DragDrop drop
+ Turret1: [X] Is overlapping UI
+ Turret1: Is overlapping Wall
-> Turret1: Set position to (round(Turret1.X÷64)×64, round(Turret1.Y÷64)×64)
-> Turret1: Set DragDrop Disabled
also another question:
I have 5 different turrets that fire 5 different bullets at 5 different enemies
the enemies have different health
the bullets have different damage
so how do i code this?
itll take a lot of (Bullet1 on collisions with Enemy1 - 1 from health) so thatll be 25 events
so is there a much simpler way i am overlooking?
thanks for your help in advance
Radkampfwagen