How do I spawn/create text objects?

Get help using Construct 2

Post » Sun Apr 02, 2017 10:46 am

hi i would liek to do this
when the user clicks on a button, the text object is dupicated at the bottom of the present text object then if the objects created reach the bottom of the windowsize, then a scroll appears.

it is easy to achieve that?
i tried to do that but when i clicked on the button the object was created onece, at the bottom, and all the other time the new created objects are al lcreated allways at the same place...
B
39
S
16
G
7
Posts: 1,727
Reputation: 9,865

Post » Sun Apr 02, 2017 11:14 am

Sounds like you're setting the Y position to a static number, try something like text.Y + 50
B
15
S
4
Posts: 38
Reputation: 951

Post » Sun Apr 02, 2017 11:41 am

ok i solved the spawning part

Image

but more i create objects and the app become instable, very very slow,i ended by closing the browser....
do someone knwo why??
here are the objects (blue) duplicated, at this point the app is so slow i have to close the browser

Image
Last edited by imothep85 on Sun Apr 02, 2017 2:27 pm, edited 1 time in total.
B
39
S
16
G
7
Posts: 1,727
Reputation: 9,865

Post » Sun Apr 02, 2017 1:46 pm

im stuck with this problem :s
B
39
S
16
G
7
Posts: 1,727
Reputation: 9,865

Post » Sun Apr 02, 2017 2:35 pm

imothep85 wrote:im stuck with this problem :s


Please allow time (more than 2 hours) for users to respond. It is the weekend and users come from many different time zones.

Thanks
If your vision so exceeds your ability, then look to something closer.
Moderator
B
136
S
31
G
86
Posts: 5,486
Reputation: 59,758

Post » Sun Apr 02, 2017 3:55 pm

well, its more than 2 hours :D
B
39
S
16
G
7
Posts: 1,727
Reputation: 9,865

Post » Mon Apr 03, 2017 7:32 am

can someone help i stil lhave the same problem with spawn function.
B
39
S
16
G
7
Posts: 1,727
Reputation: 9,865

Post » Mon Apr 03, 2017 7:55 am

Your answer is in the manual.
How events work

is the fact that the event sheet is read 60 times per second.
And each condition that is true is executed.

So what you have done is basically spawning objects 60 times a second.
In 2 seconds you have 120 object.
In 60 seconds you have

And each of those times, you are creating duplicates of the object when you should be creating objects only once.
Actually make a Function that you call when you click, it will create a single object at the moment of clicking instead of "every tick".
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
293
S
117
G
96
Posts: 7,310
Reputation: 71,069

Post » Mon Apr 03, 2017 8:27 am

thanks again Kyatric :D
B
39
S
16
G
7
Posts: 1,727
Reputation: 9,865


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 48 guests