# Welcome to the bikiniverse!

**URL:** <https://forum.defold.com/t/welcome-to-the-bikiniverse/3550>\
**Category:** Dev diaries\
**Created:** [December 1, 2016, 12:12am UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550 "2016-12-01T00:12:28Z")\
**Posts on this page:** 19\
**Page:** 4

<div class="post-metadata">

**Author:** ![88.josh](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/88.josh/32/20137_2.png) [@88.josh](https://forum.defold.com/u/88.josh)\
**Post date:** [June 7, 2017, 8:32am UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/61 "2017-06-07T08:32:42Z")

</div>

So what am I doing wrong then?!? !?!?!

```lua
go.property("offsetter", 0)
go.property("scrolling", false)
go.property("camera", vmath.vector3(0, 0, 0))

function update(self, dt)
self.camera = go.get_position("levelselect:/camera") 
	if self.camera.y ~= 0 then
		self.scrolling = true
		self.offsetter = self.camera.y
	elseif self.scrolling == true then
		self.scrolling = false
		go.animate(go.get_id(), self.offsetter, go.PLAYBACK_ONCE_FORWARD, 0, go.EASING_LINEAR, 2, 0)
	end	
	self.selfpos = go.get_position()
	self.selfpos.y = self.selfpos.y + self.offsetter
	go.set_position(self.selfpos)
end

```

(nb. i know i still have to make it lerping and not just set position, but right now i get a message “doesnt’ have a property called offsetter”)

EDIT: Okay, got it: it is not the GO but the script that has the property, so instead of using “go.get\_id()” in the animate part, i should use “#”. What a pain in the ass. I’ve spent hours on this problem. It’s crazy how quickly i forgot everything I learnt just a few months ago.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [June 7, 2017, 8:56am UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/62 "2017-06-07T08:56:08Z")

</div>

> [@88.josh](#):
>
> EDIT: Okay, got it: it is not the GO but the script that has the property, so instead of using “go.get\_id()” in the animate part, i should use “#”. What a pain in the ass. I’ve spent hours on this problem. It’s crazy how quickly i forgot everything I learnt just a few months ago.

Exactly. It’s the script component that has the property, not the game object. That’s why you have to do go.animate(“#sprite”, “tint”, …) to animate the tint of a sprite component. It’s the sprite component that has tint property, not the game object.

---

<div class="post-metadata">

**Author:** ![88.josh](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/88.josh/32/20137_2.png) [@88.josh](https://forum.defold.com/u/88.josh)\
**Post date:** [June 7, 2017, 9:09am UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/63 "2017-06-07T09:09:47Z")

</div>

Thank you for your help @britzl as usual it has proved invaluable.

Thanks also to @Daggett for his palabras de animo.

---

<div class="post-metadata">

**Author:** ![88.josh](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/88.josh/32/20137_2.png) [@88.josh](https://forum.defold.com/u/88.josh)\
**Post date:** [June 8, 2017, 11:07pm UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/64 "2017-06-08T23:07:10Z")

</div>

A question:

i have had to increase my factory buffer to 512. Although i actually use the factories very rarely. Unless the player is shaking the mouse around very fast (very unlikely), there will only be 1 object generated every second at the absolute most. All of the game objects that are created are deleted almost instantly. Is that a problem?

(I just realised as i was writing this that this is the EXACT REASON that particle effects exist… but anyway, humour me. Is what I am doing okay?)

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [June 9, 2017, 4:11am UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/65 "2017-06-09T04:11:54Z")

</div>

No, it should not be a problem. And if you’re worried about performance then my recommendation is to test on your target platform and check with the profiler. Do you get 60 fps consistently? Are you well within frame budget? What if you disable the feature and check again? Is the difference significant?

---

<div class="post-metadata">

**Author:** ![88.josh](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/88.josh/32/20137_2.png) [@88.josh](https://forum.defold.com/u/88.josh)\
**Post date:** [June 18, 2017, 2:06pm UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/66 "2017-06-18T14:06:24Z")

</div>

@britzl those are all great questions but it was quicker for me to just to change everything to a particle effect, it was a much simpler way of getting what i wanted. Thanks though.

Can anyone tell me the code to simulate a mouse release? I can’t find it anywhere.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [June 19, 2017, 8:10am UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/67 "2017-06-19T08:10:58Z")

</div>

> [@88.josh](#):
>
> Can anyone tell me the code to simulate a mouse release?

Hmm, how do you mean? There is no proper way for you in code to call the on\_input() function yourself.

Perhaps you can move your input handling to a separate function that you can call manually as well as from `on_input()` and in the case of simulating a mouse release you’d build your `action` table with the `released` variable set to true.

---

<div class="post-metadata">

**Author:** ![88.josh](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/88.josh/32/20137_2.png) [@88.josh](https://forum.defold.com/u/88.josh)\
**Post date:** [June 19, 2017, 9:31am UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/68 "2017-06-19T09:31:10Z")

</div>

Yes, I suppose changing the table would be one way of doing that. In the end I just put all my release behaviour in a local function and called that.

---

<div class="post-metadata">

**Author:** ![88.josh](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/88.josh/32/20137_2.png) [@88.josh](https://forum.defold.com/u/88.josh)\
**Post date:** [June 19, 2017, 10:14pm UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/69 "2017-06-19T22:14:14Z")

</div>

Today the thing that is annoying me is the fact that collection proxies automatically updated themselves if you change the name of the collection they used to refer to. So If I have levels called 1.collection, 2.collection, 3.collection and I decided to swap 3 and 1 around, I have to change their names and then change their proxies as well. I do not think it would be exaggeration to say this is the most frustrating thing in all possible universes

---

<div class="post-metadata">

**Author:** ![88.josh](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/88.josh/32/20137_2.png) [@88.josh](https://forum.defold.com/u/88.josh)\
**Post date:** [June 21, 2017, 5:03pm UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/70 "2017-06-21T17:03:53Z")

</div>

Designing levels in bikiniverse is the most satisfying thing in the world. I am literally shivering with pleasure.

(also i am using the company’s air conditioning right now and it is heaven on earth).

---

<div class="post-metadata">

**Author:** ![88.josh](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/88.josh/32/20137_2.png) [@88.josh](https://forum.defold.com/u/88.josh)\
**Post date:** [October 12, 2017, 5:37pm UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/71 "2017-10-12T17:37:32Z")

</div>

Hi Everybody!

It’s nice to see the new website looking so great!  
I have a quick coding question. I want to animate the position of every object in a table. Each object’s address is stored in the table. So printing v gives you “DEBUG:SCRIPT: url: [default:/instance2#script]”

```lua
for k,v in pairs(self.objects) do 
		--msg.post(v, "ender")
		print(v)
		local pos= go.get_position(v)
		pos.y = pos.y-750
		go.animate(v, "position", go.PLAYBACK_ONCE_FORWARD, pos, go.EASING_OUTBACK, 5, 0)
		go.animate(v, "scale", go.PLAYBACK_ONCE_FORWARD, 0.8, go.EASING_OUTBACK, 1, 0)
		end

```

this code gives me an error because v refers to its URL rather than the object itself (…right?). So, my question is, how do i correctly use go.get\_position() and go.animate() to move an object only using that object’s URL from the table?

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [October 12, 2017, 7:31pm UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/72 "2017-10-12T19:31:42Z")

</div>

Hmm, I would have guessed that it should work. Are you sure it’s not working? What’s the error you’re getting?

---

<div class="post-metadata">

**Author:** ![88.josh](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/88.josh/32/20137_2.png) [@88.josh](https://forum.defold.com/u/88.josh)\
**Post date:** [October 12, 2017, 8:05pm UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/73 "2017-10-12T20:05:47Z")

</div>

V refers to the address of the SCRIPT rather than the object, scripts do not have a position!

---

<div class="post-metadata">

**Author:** ![ross.grams](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/r/cab0a1/32.png) [@ross.grams](https://forum.defold.com/u/ross.grams)\
**Post date:** [October 12, 2017, 8:17pm UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/74 "2017-10-12T20:17:26Z")

</div>

You can do `msg.url(v.socket, v.path, nil)` to get the url of the parent game object.

---

<div class="post-metadata">

**Author:** ![88.josh](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/88.josh/32/20137_2.png) [@88.josh](https://forum.defold.com/u/88.josh)\
**Post date:** [October 12, 2017, 8:24pm UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/75 "2017-10-12T20:24:42Z")

</div>

Thanks ross.grams you powerful devil.

Next question: How do I make a particle modifier that pushes particles out from one point? basically this effect: [https://www.youtube.com/watch?v=9q8q0psNtZA](https://www.youtube.com/watch?v=9q8q0psNtZA)

---

<div class="post-metadata">

**Author:** ![88.josh](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/88.josh/32/20137_2.png) [@88.josh](https://forum.defold.com/u/88.josh)\
**Post date:** [October 12, 2017, 8:36pm UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/76 "2017-10-12T20:36:12Z")

</div>

I suspect what I want is a cone (3D cone) set at 90 degrees (i.e, an emitter firing particles straight into the camera). However, when I do that, the sprites become invisible because they are also being rotated 90 degrees. Any ideas?

edit: I did it with four 2D cones, which is less satisfying, but works equally well.

---

<div class="post-metadata">

**Author:** ![ross.grams](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/r/cab0a1/32.png) [@ross.grams](https://forum.defold.com/u/ross.grams)\
**Post date:** [October 12, 2017, 9:40pm UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/77 "2017-10-12T21:40:13Z")

</div>

You should be able to do it with just one circle emitter and increase scale over time with a curve.

 ![00](https://forum-defold-uploads.b-cdn.net/original/2X/4/48d733b1c2e8ce6682cd80b8df98064536695abf.jpg)

---

<div class="post-metadata">

**Author:** ![88.josh](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/88.josh/32/20137_2.png) [@88.josh](https://forum.defold.com/u/88.josh)\
**Post date:** [October 12, 2017, 9:55pm UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/78 "2017-10-12T21:55:32Z")

</div>

I am still on editor 1. Maybe it’s time i upgraded

---

<div class="post-metadata">

**Author:** ![88.josh](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/88.josh/32/20137_2.png) [@88.josh](https://forum.defold.com/u/88.josh)\
**Post date:** [December 22, 2017, 11:04am UTC](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550/79 "2017-12-22T11:04:36Z")

</div>

> [@88.josh](#):
>
> [https://www.youtube.com/watch?v=9q8q0psNtZA](https://www.youtube.com/watch?v=9q8q0psNtZA)

Hi Everybody!

2018 is going to tbe the year of the bikiniverse! In 2017 I have been recording a solo album (another dream I wanted to accomplish before turning 30). And 2018 I’m going to finish and publish bikiniverse. My to do list is as follows:

1- introduce a narrative element by having a character who explains something to you at the start of (every? most?) levels. I just realised that character could be their own collection and I would barely have to modify each level. That feels fantastic. I have also programmed some cut scenes

2- create some sort of finale for the player reaches the end, and another one for when they collect all the donuts

3- add more music!

p.d if you want to hear my new song it’s here

[![](https://i.ytimg.com/vi/LLDyhwlywHY/hqdefault.jpg "Tiger Teeth - The Show") ](https://www.youtube.com/watch?v=LLDyhwlywHY)

[Previous page](https://forum.defold.com/t/welcome-to-the-bikiniverse/3550.md?page=3)
