A
Adjud
Guest
Hi, I want to create a random x/y range for text displayed from an object. specifically damage dealt displayed randomly over the enemies head. my current code:
what I want to achieve is something like:
I know the above code is not a real code, its the idea, I'm trying to get the damage to display randomly above the enemies head but within a range of x -40 to +40 and y -40 to -60 if that makes sense?
if I need an array or something more advanced to create this effect, please refer me to documentation on how to achieve my goal.
thank you and sorry for the newbie questions...
Code:
if atime=1 {
draw_text(objslime.x -20,objslime.y -40 ,string(damage))
}
if miss=1 {
draw_text_color(objslime.x -20,objslime.y -40 , "Miss",c_red,c_red,c_red,c_red,1)
}
Code:
if atime=1 {
draw_text(objslime.x + random(-40) to random(40) for x ,,objslime.y + random(-60) to random(-40) ,string(damage))
}
if I need an array or something more advanced to create this effect, please refer me to documentation on how to achieve my goal.
thank you and sorry for the newbie questions...