Im making a space shooter game and i just made this shield but i want it to stay on the space ship there both separate objects so maybe you can make it follow the spaceship really fast it stays on it, someone please help
Follow object help
Started by chaoscontroldx, Jun 03 2012 09:03 AM
2 replies to this topic
#1
Posted 03 June 2012 - 09:03 AM
#2
Posted 03 June 2012 - 09:10 AM
//in shield obj
x=ship.x;
y=ship.y;
if this judders a bit in the step event try it in the end step or also set the vspeed and hspeed of shield from ship.vspeed ... which will help to stop it looking wrong
x=ship.x;
y=ship.y;
if this judders a bit in the step event try it in the end step or also set the vspeed and hspeed of shield from ship.vspeed ... which will help to stop it looking wrong
#3
Posted 03 June 2012 - 09:12 AM
what does the shield object do?!Im making a space shooter game and i just made this shield but i want it to stay on the space ship there both separate objects so maybe you can make it follow the spaceship really fast it stays on it, someone please help
if it does really little you could put it in the original space ship object!
also put this in the step event for that object(if you don't want to take my above tip):
x = object_spaceship_name.x // change the "object_spaceship_name" to you spaceship's name! y = object_spaceship_name.y // same hereEDIT:
I GOT NINJA'D!
Edited by creators124, 03 June 2012 - 09:13 AM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











