pin some texts into moving objects

Get help using Construct 2

Post » Thu Jan 16, 2014 8:20 am

When we play Pro Evolution Soccer (PES) and set the setting into "Player Name". Then, when we play the game, a name box will appear above characters which we control. and it's follow wherever it moves.
.
can i do it on construct? and if that possible, can I pin it into random objects?
.
Thanks, sorry for my bad english
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
62
S
14
G
2
Posts: 286
Reputation: 6,576

Post » Thu Jan 16, 2014 9:41 am

it seems to be easy, you can just add a boolean variable in the player characters, call it "ShowNameText". Then just put in a condition "for each characters" when "ShowNameText" variable is true, then "trigger once" create yourself a text at position (x, y +20) of character with the active variable.

for place the text to stay following use a pin behavior, or create another condition with lerp :3
Open for Commission, contact email > [email protected]



my personal website with news in my game developer adventure! |

adult ( 18) pixel art games
B
133
S
24
G
21
Posts: 512
Reputation: 24,912

Post » Sat Jan 18, 2014 2:19 pm

thanks [LOL] ,
now I ecountered a new problem. I want to make an addition task.
first, I want to create two texts, and set them into random number between 1-50.
then, I want the answer is placed into a moving meteor. how do I make the logic for that?
here is my screenshoot for the game.

[URL= ]https://www.dropbox.com/s/54fehpaprt8uzpx/a.PNG[/URL]
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
62
S
14
G
2
Posts: 286
Reputation: 6,576

Post » Sat Jan 18, 2014 2:40 pm

This thread might help:
random answers

You can use the Spawn action to spawn your text object at the meteor location, pin it, and using a variation on the 'random answer' thread, create correct and incorrect answers.blackhornet2014-01-18 14:41:49
ImageImageImage
B
71
S
21
G
220
Posts: 3,648
Reputation: 123,725

Post » Sun Jan 19, 2014 12:49 am

how does the computer will know if player hit the correct one, and give a score??
.
and one more, how to open a newer version of capx? i can't open some examples because mine is older version.
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
62
S
14
G
2
Posts: 286
Reputation: 6,576

Post » Sun Jan 19, 2014 1:54 am

Add an instance variable to the meteor with the answer. It can then be checked.

You'll need to get the latest version. releases
ImageImageImage
B
71
S
21
G
220
Posts: 3,648
Reputation: 123,725

Post » Sun Jan 19, 2014 4:51 pm

My construct has reverted to Free Edition,,
Do I need to get a new licence?
I use 134 if I not mistaken.
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
62
S
14
G
2
Posts: 286
Reputation: 6,576

Post » Sun Jan 19, 2014 5:01 pm

@blackhornet : that capx requires an array2 plugin. can you tell me how to insert that? I already downloaded it.
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
62
S
14
G
2
Posts: 286
Reputation: 6,576

Post » Sun Jan 19, 2014 5:15 pm

errr..
I moved it into exporters/html5/plugins/
and restart construct. WHen I tried to open the file, it says i didn't installed the plugin.
.
but when I open new project-> insert new object
that plugin is already installed..
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
62
S
14
G
2
Posts: 286
Reputation: 6,576

Post » Sun Jan 19, 2014 5:52 pm

Did you upgrade?
ImageImageImage
B
71
S
21
G
220
Posts: 3,648
Reputation: 123,725

Next

Return to How do I....?

Who is online

Users browsing this forum: davidbox, Mayfly, Yahoo [Bot] and 6 guests