Posted By
|
Message
|
![](https://lh3.googleusercontent.com/-HAlU2DcfOgI/AAAAAAAAAAI/AAAAAAAAAB4/QZCEqTB08po/s46-c-k-no/photo.jpg) columbo borgi :C
Registered 07/12/2003
Points 296
|
24th January, 2011 at 21:00:44 -
yo man
i would like to create some of the same object, and place them in random positions.
like this:
http://kepfeltoltes.hu/110124/createobj_www.kepfeltoltes.hu_.png
but that's ain't no worken.
how can i solve this issue?
Edited by columbo borgi :C
:C
|
![](http://clayt.in/files/images/beansieavatar-big.png) OMC What a goofball
Registered 21/05/2007
Points 3516
![KlikCast Musician! KlikCast Musician!](tags/kcicon.png) ![Guy with a Hat Guy with a Hat](tags/xmas.png) ![Somewhat Crazy Somewhat Crazy](tags/../uploads/screami-short.gif) ![ARGH Sign ARGH Sign](tags/argh.gif) ![Likes TDC Likes TDC](tags/..\uploads\FBlike2.png) ![Has Donated, Thank You! Has Donated, Thank You!](tags/coins.gif)
|
24th January, 2011 at 21:24:17 -
How exactly is it not working? Are they all going to the same place? Not being placed at all?
|
![](https://lh3.googleusercontent.com/-HAlU2DcfOgI/AAAAAAAAAAI/AAAAAAAAAB4/QZCEqTB08po/s46-c-k-no/photo.jpg) columbo borgi :C
Registered 07/12/2003
Points 296
|
24th January, 2011 at 21:30:22 -
jop, they are at the same place.
i see at the debuggart that 4 object is created, but i only see one, that's why i think they are at the same place
:C
|
![](http://clayt.in/files/images/beansieavatar-big.png) OMC What a goofball
Registered 21/05/2007
Points 3516
![KlikCast Musician! KlikCast Musician!](tags/kcicon.png) ![Guy with a Hat Guy with a Hat](tags/xmas.png) ![Somewhat Crazy Somewhat Crazy](tags/../uploads/screami-short.gif) ![ARGH Sign ARGH Sign](tags/argh.gif) ![Likes TDC Likes TDC](tags/..\uploads\FBlike2.png) ![Has Donated, Thank You! Has Donated, Thank You!](tags/coins.gif)
|
24th January, 2011 at 21:46:10 -
Are they at 320, 240?
Is there only one of the green box?
|
![](https://lh3.googleusercontent.com/-HAlU2DcfOgI/AAAAAAAAAAI/AAAAAAAAAB4/QZCEqTB08po/s46-c-k-no/photo.jpg) columbo borgi :C
Registered 07/12/2003
Points 296
|
24th January, 2011 at 21:51:57 -
no, they created at random positions, every time this event runs
but all the 4 at the same position.
:C
|
![](http://clayt.in/files/images/beansieavatar-big.png) OMC What a goofball
Registered 21/05/2007
Points 3516
![KlikCast Musician! KlikCast Musician!](tags/kcicon.png) ![Guy with a Hat Guy with a Hat](tags/xmas.png) ![Somewhat Crazy Somewhat Crazy](tags/../uploads/screami-short.gif) ![ARGH Sign ARGH Sign](tags/argh.gif) ![Likes TDC Likes TDC](tags/..\uploads\FBlike2.png) ![Has Donated, Thank You! Has Donated, Thank You!](tags/coins.gif)
|
24th January, 2011 at 22:26:03 -
Hmmm. Well, the issue is escaping me for now.
This is what I usually do in this kind of situation: http://jollycrouton.com/Uploads/TDC/Borgi.zip
Maybe someone else knows what's going on?
|
![](http://andyuk.tengudev.com/Games/Display.png) AndyUK Mascot Maniac
Registered 01/08/2002
Points 14586
![Game of the Week Winner Game of the Week Winner](tags/cup.gif) ![Second GOTW Award Second GOTW Award](tags/cup2.gif) ![Has Donated, Thank You! Has Donated, Thank You!](tags/coins.gif)
|
25th January, 2011 at 00:57:53 -
Try putting each create and randomise position event in a seperate line.
I often have trouble with creating then moving multiple objects in the same line. Usually with particle effects. Seperate lines always fixes the problem but I don't know why!
.
|
![](https://lh3.googleusercontent.com/-HAlU2DcfOgI/AAAAAAAAAAI/AAAAAAAAAB4/QZCEqTB08po/s46-c-k-no/photo.jpg) columbo borgi :C
Registered 07/12/2003
Points 296
|
25th January, 2011 at 16:46:49 -
thanks for your advices MEN
i did not want to use more than one line. so i use some counters to create ranodm numbers, and i use them to place these object. i can create more ranodm number at one always event with this technique :C
:C
|
![](https://i.imgur.com/sLVzJGn.gif) UrbanMonk BRING BACK MITCH
Registered 07/07/2008
Points 49667
![Has Donated, Thank You! Has Donated, Thank You!](tags/coins.gif) ![Little Pirate! Little Pirate!](tags/lilpirate.png) ![ARGH Sign ARGH Sign](tags/argh.gif) ![Kliktober Special Award Tag Kliktober Special Award Tag](tags/scarytag2.png) ![Picture Me This Round 33 Winner! Picture Me This Round 33 Winner!](tags/picturemethisbandit.gif) ![The Outlaw! The Outlaw!](tags//r2.gif) ![VIP Member VIP Member](tags/vipbadge.png) ![Hasslevania 2! Hasslevania 2!](tags/r1.gif) ![I am an April Fool I am an April Fool](tags/fool.png) ![Kitty Kitty](tags/../uploads/cat.gif)
![Picture Me This Round 32 Winner! Picture Me This Round 32 Winner!](tags/picturemethisbandit.gif) ![Picture Me This Round 42 Winner! Picture Me This Round 42 Winner!](tags/picturemethisbandit.gif) ![Picture Me This Round 44 Winner! Picture Me This Round 44 Winner!](tags/picturemethisbandit.gif)
|
25th January, 2011 at 19:01:43 -
Don't separate it into multiple conditions.
Just remove all the randomizing code except the last and let all the create commands stack.
That'll work.
n/a
|
![](https://lh3.googleusercontent.com/-HAlU2DcfOgI/AAAAAAAAAAI/AAAAAAAAAB4/QZCEqTB08po/s46-c-k-no/photo.jpg) columbo borgi :C
Registered 07/12/2003
Points 296
|
25th January, 2011 at 23:33:56 -
tanks for youradvice, but it happends one frame later. i can see the created objects at the spot without the random part.
:C
|
![](https://i.imgur.com/sLVzJGn.gif) UrbanMonk BRING BACK MITCH
Registered 07/07/2008
Points 49667
![Has Donated, Thank You! Has Donated, Thank You!](tags/coins.gif) ![Little Pirate! Little Pirate!](tags/lilpirate.png) ![ARGH Sign ARGH Sign](tags/argh.gif) ![Kliktober Special Award Tag Kliktober Special Award Tag](tags/scarytag2.png) ![Picture Me This Round 33 Winner! Picture Me This Round 33 Winner!](tags/picturemethisbandit.gif) ![The Outlaw! The Outlaw!](tags//r2.gif) ![VIP Member VIP Member](tags/vipbadge.png) ![Hasslevania 2! Hasslevania 2!](tags/r1.gif) ![I am an April Fool I am an April Fool](tags/fool.png) ![Kitty Kitty](tags/../uploads/cat.gif)
![Picture Me This Round 32 Winner! Picture Me This Round 32 Winner!](tags/picturemethisbandit.gif) ![Picture Me This Round 42 Winner! Picture Me This Round 42 Winner!](tags/picturemethisbandit.gif) ![Picture Me This Round 44 Winner! Picture Me This Round 44 Winner!](tags/picturemethisbandit.gif)
|
25th January, 2011 at 23:39:30 -
Ok, well do you have the latest build of mmf2?
IT works for me.
I do it like this
-Create object "blah" at (0,0)
-Create object "blah" at (0,0)
-Create object "blah" at (0,0)
-Create object "blah" at (0,0)
-Set x Position of "blah" to random(100)
-Set y Position of "blah" to random(100)
Then they all get put in a different random position
If I want more objects I just copy the create action.
It's easy!
n/a
|
![](https://lh3.googleusercontent.com/-HAlU2DcfOgI/AAAAAAAAAAI/AAAAAAAAAB4/QZCEqTB08po/s46-c-k-no/photo.jpg) columbo borgi :C
Registered 07/12/2003
Points 296
|
26th January, 2011 at 01:19:02 -
oh thanks! in newer version works fine!
:C
|
![](images/avatars/5.gif) Cecilectomy noPE
Registered 19/03/2005
Points 305
![Has Donated, Thank You! Has Donated, Thank You!](tags/coins.gif) ![VIP Member VIP Member](tags/vipbadge.png) ![Weekly Picture Me This Winner! Weekly Picture Me This Winner!](tags/picturemethisbandit.gif) ![Cardboard Box Cardboard Box](tags/cardboardbox.gif) ![Ghostbuster! Ghostbuster!](tags/ghostbuster.gif) ![Pokemon Ball! Pokemon Ball!](tags/pokeball.gif) ![Computer Computer](tags/computer.png) ![Box Red Box Red](tags/box-red.gif) ![Santa Hat Santa Hat](tags/santa-hat.gif) ![Snowman Snowman](tags/Snowman.gif)
|
26th January, 2011 at 07:06:50 -
yo dude, my name is all shrinky too.
n/a
|
![](https://lh3.googleusercontent.com/-HAlU2DcfOgI/AAAAAAAAAAI/AAAAAAAAAB4/QZCEqTB08po/s46-c-k-no/photo.jpg) columbo borgi :C
Registered 07/12/2003
Points 296
|
26th January, 2011 at 23:13:13 -
so do mine :C
:C
|
![](http://www.bitsize-games.com/pics/red_feud.gif) Mårten
Registered 25/06/2002
Points 769
|
1st February, 2011 at 13:55:12 -
Glad you solved it. A more scalable solution would be to use a loop though.
---
|
|
|