Bubble_Engine

by deraste

Free_Bubble_Engine

How To Make A Bubble Engine.

new object.
name = obj_bubble
sprite = none
event = Create
Execute a piece of code =
width = random(5)+5;
direction = random(360);
speed = random(1)+.25;
Event = Step
Execute a piece of code =
if (width < 0) {
instance_destroy();
} else {
width -= .05;
}
========OK=========
create new objecte
name:bubble_draw
sprite:none
event :
Draw :
Execute a piece of code :
with(obj_bubble) {
draw_set_color(c_lime); //(c_lime)=(c_color your want)
draw_circle(x,y,width,1);
}
with(obj_bubble) {
draw_set_color(c_green); //(c_green)=(c_color your want)
draw_circle(x,y,width-.5,0);
}
draw_set_color(c_black); //(c_black)=(c_color your want)



in your object add event = step = execute a piece of code = instance_create(x,y,obj_bubble)

Tags: bubble

Download
Released 2011-04-28
Category Other
Rating 0.0 (by 0 users)
Downloads 12
Version 1
ID 172833
Slug bubble_engine