Jump to content


KevinBacon

Member Since 05 Apr 2012
Offline Last Active Feb 17 2013 06:07 PM

Topics I've Started

Prevent drawing off screen

21 September 2012 - 02:33 PM

so if i like glide over an object and it shows its info, the info wont be drawn off screen where you wont see it.
you see?

How to use a sprite as a health bar

17 September 2012 - 11:51 AM

so you simply have a red rectangle sprite for the bar,
and use sprite extended to make the bar.

i tried (PHP = health)
draw_sprite_ext(hp_spr,1,x,y,1,PHP/PHP*100,direction,c_red,1)


but it doesn't seem to work.
it draws the bar but doesn't deplete when PHP goes down.
any help?

Draw rotatable hp bar off centre from an object

15 September 2012 - 12:12 PM

so i have multiple AI cars racing around a track

i want the health bar to be drawn at the back of the car and following it exactly

imusing.....
draw_sprite_ext(hp,1,x,y,1,HP/HP*100/18,direction,c_white,1)

Avoid object whilst following a path

14 September 2012 - 09:42 AM

so im making a top down racing game and i need the ai cars to avoid each other (go around to overtake) whilst following there path.
for me,i think the actual input path maker is a necessity seen as the ai cars change speeds at different points in the path(like at corners).
if there's a way to code the path so that you can individually input the speed at each point in the path, let me know.

so again......is it possible to make an object following a path change its path to avoid another object?
and is there a way to set a path using code and individually input speeds at each path point?
help would be nice, thanks :)

Path speed as multiple variables?

12 September 2012 - 04:36 PM

I was wondering if you could use multiple variables for the path speed (meaning the sp input box)
i know it doesn't allow it strait up, just asking if there's a way.
im wanting a selection of different speeds, using somin like choose(,,)
im rookie btw
thanks XD.