A
Ajay Warden
Guest
Totally new to Game Maker.
I'm making a tank game. The enemy tank is made up of two objects,
obj_enemytank and obj_enemytankturret
It seems so simple but I'm having trouble making the enemy tank turret move with the enemy tank, as in keeping the turret on top of the tank while moving.
There are multiple enemy tanks on screen so the simple,
Jump To Position
obj_enemytank.x
obj_enemytank.y
doesn't work as it makes all the enemy turrets jump to one enemy tank instead of the tank it should be "connected" to.
I have it so each obj_enemytank creates an instance of obj_enemytankturret on top of it when the game starts, but as soon as the tank moves, the turret it created does not.
I'm making a tank game. The enemy tank is made up of two objects,
obj_enemytank and obj_enemytankturret
It seems so simple but I'm having trouble making the enemy tank turret move with the enemy tank, as in keeping the turret on top of the tank while moving.
There are multiple enemy tanks on screen so the simple,
Jump To Position
obj_enemytank.x
obj_enemytank.y
doesn't work as it makes all the enemy turrets jump to one enemy tank instead of the tank it should be "connected" to.
I have it so each obj_enemytank creates an instance of obj_enemytankturret on top of it when the game starts, but as soon as the tank moves, the turret it created does not.