# Bubbles

**URL:** https://forum.kirupa.com/t/bubbles/10389
**Category:** flash
**Created:** [December 31, 2002, 2:18am UTC](https://forum.kirupa.com/t/bubbles/10389 "2002-12-31T02:18:12Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![orangefish](https://avatars.discourse-cdn.com/v4/letter/o/5e9695/32.png) [@orangefish](https://forum.kirupa.com/u/orangefish)
#### Post date: [December 31, 2002, 2:18am UTC](https://forum.kirupa.com/t/bubbles/10389/1 "2002-12-31T02:18:12Z")

</div>

Hi all,  
I was trying to modify the kirupa “falling snow” tutorial  
[http://www.kirupa.com/developer/mx/snow.asp](http://www.kirupa.com/developer/mx/snow.asp)  
into a water bubbles effect which is just making it up side down. However, I was having trouble to make the bubble start from a certain point in a movie. For example, I was trying to make the bubble start from the bottom of the screen, but it didn’t seem to work for me. Therefore, I was hoping if there is someone who can help me to solve the problem.  
Thanks a lot.  
Happy New Year everyone!:crazy:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 31, 2002, 2:37am UTC](https://forum.kirupa.com/t/bubbles/10389/2 "2002-12-31T02:37:46Z")

</div>

prolly has something to do with this section of code

```auto

if (this._y>=movieHeight) {
	this._y = -5;
}
if ((this._x>=movieWidth) || (this._x<=0)) {
	this._x = -10+Math.random()*movieWidth;
	this._y = -5;
}

```

but your prolly gonna have to rescript the whole thing

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 31, 2002, 2:55am UTC](https://forum.kirupa.com/t/bubbles/10389/3 "2002-12-31T02:55:34Z")

</div>

put it all in a single movieclip. Put that movieclip on the bottom of the screen and rotate it 180 degrees

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 31, 2002, 2:59am UTC](https://forum.kirupa.com/t/bubbles/10389/4 "2002-12-31T02:59:33Z")

</div>

■■■■ i hate it when the answer to things are as easy as that

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 31, 2002, 3:32am UTC](https://forum.kirupa.com/t/bubbles/10389/5 "2002-12-31T03:32:03Z")

</div>

sometimes when you get so involved with the complexity of things you almost become ‘too smart’ for your own good and start to overlook simple solutions such as those 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 31, 2002, 3:16pm UTC](https://forum.kirupa.com/t/bubbles/10389/6 "2002-12-31T15:16:21Z")

</div>

ok, check out my footer, i did just that  
i turned the mc 180 degrees, and thats what happens?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 31, 2002, 7:17pm UTC](https://forum.kirupa.com/t/bubbles/10389/7 "2002-12-31T19:17:16Z")

</div>

Thank you guys for help!  
it works

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 3, 2003, 12:32am UTC](https://forum.kirupa.com/t/bubbles/10389/8 "2003-01-03T00:32:02Z")

</div>

try this:

```auto

if (this._y>=(movieHeight*-1)) {
	this._y = 5;
}
if ((this._x>=movieWidth) || (this._x<=0)) {
	this._x = -10+Math.random()*movieWidth;
	this._y = 5;
}

```

i’ve not tried it myself yet, but that’s what I’d try doing first… =)
