Jump to content


Photo

Particles Depth


  • Please log in to reply
3 replies to this topic

#1 Trainz175

Trainz175

    GMC Member

  • New Member
  • 120 posts
  • Version:GM:Studio

Posted 02 July 2012 - 01:32 AM

I believe the particle depth system is bugged in GM:Studio. All of the particles presented in this code appear on top of all my instances/sprites. No other instances come close to a depth of 100.

Just curious if I am missing something obvious here.

psf = part_system_create();
part_system_depth(psf,100);

  blx = part_type_create();
  part_type_sprite(blx,spr_blocks,0,0,0);
  part_type_size(blx,0.1,1,0,0);
  part_type_speed(blx,0.5,4,0,0);
  part_type_direction(blx,270,270,0,0);
  part_type_color1(blx,c_gray);
  part_type_alpha2(blx,0.3,0);
  part_type_life(blx,120,600);

  ems = part_emitter_create(psf);
  part_emitter_region(psf,ems,0,room_width,0,0,ps_shape_rectangle,ps_distr_linear);
  part_emitter_stream(psf,ems,blx,-4);

  • 0

#2 daz

daz

    GMC Member

  • GMC Member
  • 798 posts
  • Version:GM:Studio

Posted 02 July 2012 - 02:40 AM

Positive depths appear more "on top". Try -100.
  • 0

#3 Trainz175

Trainz175

    GMC Member

  • New Member
  • 120 posts
  • Version:GM:Studio

Posted 02 July 2012 - 04:22 AM

Positive depths appear more "on top". Try -100.

On the contrary, positive depth has always been away from the viewer and negative is towards. =)

"In GameMaker:Studio a low depth (of negative numbers like -1000) means that the instance will be drawn "closer" to the player and on top of all instances with a lower depth, while a high depth (of positive numbers like 1000) means that the instance will be drawn "further away" from the player and beneath those instances that have a lower depth."
  • 0

#4 daz

daz

    GMC Member

  • GMC Member
  • 798 posts
  • Version:GM:Studio

Posted 02 July 2012 - 03:12 PM


Positive depths appear more "on top". Try -100.

On the contrary, positive depth has always been away from the viewer and negative is towards. =)

"In GameMaker:Studio a low depth (of negative numbers like -1000) means that the instance will be drawn "closer" to the player and on top of all instances with a lower depth, while a high depth (of positive numbers like 1000) means that the instance will be drawn "further away" from the player and beneath those instances that have a lower depth."

Oh you are right, I don't know why I posted that. Must've been too sleepy last night. There seems to be a bug on the tracker about this type of issue (although in the reporter's case the particles are all behind everything) http://bugs.yoyogame...iew.php?id=4497 Maybe you could bump that by making your own comment about your experience.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users