hello, how do I create an event that could create the same object at the same distance, the 'event that I created you do not perform well. And how do I create a random item 1 or 3, skipping the number 2?Attachment 22726
Printable View
hello, how do I create an event that could create the same object at the same distance, the 'event that I created you do not perform well. And how do I create a random item 1 or 3, skipping the number 2?Attachment 22726
what you need to change exactly?
perhaps using a fastloop would make it more solid:
Attachment 22727
if you need a random number among 1 and 3 (without 2)
you could do:
random(2)*2+1
or play with strings:
val(mid$("13",random(2),1))
Hello, thank you very much for the advice, but there is a problem with the creation, sometimes it comes out 1, then 2 that turns it back to 1 getting me out of the object in the same place, I also came out three times below 2Attachment 22744
and the objects should be created immediately after reaching an X position and not every 3 seconds
I think I've not understood exactly what you need,
could you try writing down your requirements in greater detail
You want specific pair of object created in a specific moment and specific positions,
under which exact rules?
hello Schrodinger, I wish that when an object reaches, for example, the 200X position it would create another object in a Y position which is not the same as before. for this I put the counter that creates objects in different positions depending on the number of the counter. with your event instead come out every 3 seconds and the counter sometimes creates the same number letting out the objects in the same position
Ahh ok, I think I understand now,
perhaps something like this?
Attachment 22782
Very thanks ;) ;) ;)
Unfortunately there was a problem, I changed the size of the screen and the size of the active objects, and the event that had to change position to the objects now also changes for scrolling objects. In addition, I added a different object with a non-random position, but he is created in different positions even though he should not. Can someone help me ?Attachment 22901
You had a couple inverted actions,
the "create object" when counter = 2 came after you "set positions" for those objects,
while you should create objects before you set their positions,
otherwise all objects of that kind will be affected (except those you create right after!)
Attachment 22906
While it seems to me the new object is always created at same position
Thanks Schrodinger, so you have to create the creation event before I understand it. The position remains the same, I forgot to delete the objects out of the frame :)