Hey all,
I am making a short fun space invader-esque game via events.
I am using pictures, with coordinates as the player and enemies.
I have lasers and movement figured out.
Projectile/Enemy Interaction
I had it set so that If the laser coordinate == enemy coordinate, the enemy gets hurt.
http://img248.imageshack.us/img248/6254/71570963re5.png[/IMG]
But then I realized, picture coordinates are only one pixel!
So if the little green dot doesn't hit the other little green dot, it's a miss, even though it looks like it should have been hit :\
http://img63.imageshack.us/img63/9021/49718337cs6.png[/IMG]
So my question is this.
How can I RGSS this:
--------------------------------------
Event conditional branch>script :
then: result
--------------------------------------
so the end result would be, if the purple circles touch, then it's a hit.
http://img406.imageshack.us/img406/7355/69483044ve8.png[/IMG]
Thanks in advance!
I am making a short fun space invader-esque game via events.
I am using pictures, with coordinates as the player and enemies.
I have lasers and movement figured out.
Projectile/Enemy Interaction
I had it set so that If the laser coordinate == enemy coordinate, the enemy gets hurt.
http://img248.imageshack.us/img248/6254/71570963re5.png[/IMG]
But then I realized, picture coordinates are only one pixel!
So if the little green dot doesn't hit the other little green dot, it's a miss, even though it looks like it should have been hit :\
http://img63.imageshack.us/img63/9021/49718337cs6.png[/IMG]
So my question is this.
How can I RGSS this:
--------------------------------------
Event conditional branch>script :
#first pic[id] is the laser, the second pic [id] would be the enemyIf Picture[id]coordinates are within 20 pixels of Picture[id] coordinates
then: result
--------------------------------------
so the end result would be, if the purple circles touch, then it's a hit.
http://img406.imageshack.us/img406/7355/69483044ve8.png[/IMG]
Thanks in advance!