#Drawn primitives wont show when I run the game

14 messages · Page 1 of 1 (latest)

hybrid relic
#

I have the following code to draw a simple blue line. I've checked if the coordinates are within the camera and ive disabled all layers too to check if that was the problem. this code is in a draw event. what did I do wrong?

draw_primitive_begin(pr_linelist)
draw_vertex_color(100, 70, c_blue, 1)
draw_vertex_color(200, 70, c_blue, 1)
draw_primitive_end()

open vessel
#
  1. does your object have "visible" on?
  2. try drawing a circle or rectangle or sprite, does that draw?
hybrid relic
#

draw_primitive_begin(pr_trianglelist)
draw_vertex_color(100, 70, c_blue, 1)
draw_vertex_color(200, 70, c_blue, 1)
draw_vertex_color(200, 30, c_blue, 1)
draw_primitive_end()

doesnt work either

open vessel
#

draw a sprite

#

does the sprite draw

hybrid relic
#

the object has no sprite

#

does it need one?

open vessel
#

just draw a random sprite

#

draw_sprite(random_sprite, 0, x,y)

hybrid relic
#

oh wait hold on im stupid

#

i didnt put the object in the room lol

open vessel
hybrid relic
#

yeah now it works lol