draw_text(view_xview+5,view_yview+5,global.radiation_level_machinegun)
Edited by Joecoolhair, 23 February 2012 - 04:09 AM.
Posted 22 February 2012 - 10:43 PM
draw_text(view_xview+5,view_yview+5,global.radiation_level_machinegun)
Edited by Joecoolhair, 23 February 2012 - 04:09 AM.
Posted 22 February 2012 - 11:17 PM
Posted 23 February 2012 - 01:59 AM
use the distance_to_object GML code.
variable=distance_to_object(obj_player)
Hope that was enough.
Edited by Joecoolhair, 23 February 2012 - 02:00 AM.
Posted 23 February 2012 - 02:05 AM
Posted 23 February 2012 - 04:02 AM
I did it.Which is what he gave you. Just add the distance (or some mathematical function of the distance) to the value...for example, add 1/distance to the variable and the closer you are, the faster it will count up.
-IMP
Create: global.variable=0 Step: global.variable=1/distance_to_object(radiation_object)Thanks for all the help.
Edited by Joecoolhair, 23 February 2012 - 04:09 AM.
0 members, 0 guests, 0 anonymous users