Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Codes used in this tutorial:
- Obj_blood:
- motion_set(random(100),random(10));//sets to move in any were in a 360 degree movement and speed to random out of 15
- gravity_direction=270;//sets the direction gravity pulls
- gravity=0.5;//sets ammount of gravity (i dont recomend over 0.5)
- alarm[0]=300//sets the timer for when to start to remove blood
- fade=false;//tells not to fade yet
- fade=true//this tell to fade the object away
- if fade=true
- {
- image_alpha-=0.02; // Sets the image alpha relative to 0.01
- }
- if image_alpha<=0 // once the object is completely transparent it'll be destroyed
- {
- instance_destroy();
- }
- speed = 0
- fade = true
- instance_destroy()
- obj_test:
- instance_create(x,y,obj_blood);
- repeat(10)
- {
- instance_create(x,y,obj_blood);
- }
Advertisement
Add Comment
Please, Sign In to add comment