How do I create text instead of smoke?

Get help using Construct 2

Post » Thu Jul 24, 2014 5:36 pm

hi,
I want to create a game similar to Ghost Shooter, but instead of the object goes up in smoke and disappear, I would like a text to be shown disappearing gradually. I want to use this game to teach kids about diabetes. So the text will be about diabetes. Every time the player kills an object by shooting, the text should be displayed so the kids will learn diabetic terms.
Thank You
Ron
B
4
Posts: 6
Reputation: 200

Post » Thu Jul 24, 2014 7:17 pm

In ghost shooter, when a ghost is destroyed, a the monster sprite is removed and a explosion sprite is created where it dies. What you want to do is when the ghost is destroyed, create a textbox where it dies. This is done in event 5 of the tutorial version of ghost shooter. You need to create a textbox and add the fade behavour to it. Then change the event.

The event currently looks like this:

Condition:
Monster -> health <= 0

Actions:
Monster -> Destroy
Monster -> Spawn "explosion" on lair "main" (image point 0)
Explosion -> Set angle to "random(360)" degrees
System -> Add "Monster.Movement.Speed" to Score

You want the event to look more like this:

Condition:
Monster -> health <= 0

Actions:
Monster -> Destroy
Monster -> Spawn "Diabetes Text" on lair "main" (image point 0)
Diabetes Text -> Set text to "Diabetes is a group of diseases in which there are high blood sugar levels."
System -> Add "Monster.Movement.Speed" to Score

You may also want to create a dictionary or array of text about diabetes and set the diabetes text to a random message from it
B
11
S
3
G
1
Posts: 98
Reputation: 1,062

Post » Thu Jul 24, 2014 7:42 pm

Thanks for the answer, but I am new to construct. How do I create a textbox and insert the diabetes message?
B
4
Posts: 6
Reputation: 200

Post » Thu Jul 24, 2014 8:31 pm

You should really consider reading the manual and doing some tutorials
https://www.scirra.com/manual/116/text
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499

Post » Fri Jul 25, 2014 1:32 pm

thanks for the help
B
4
Posts: 6
Reputation: 200

Post » Fri Jul 25, 2014 4:02 pm

@abdool

Consider using the Sprite Font object instead of Text, but otherwise the method Robsta described is correct.
Vote for all the Construct 2 games on Steam Greenlight - Find them here
B
32
S
9
G
7
Posts: 444
Reputation: 6,731

Post » Fri Aug 01, 2014 7:59 pm

ok, so I will try the text object because the spritefont seems complicated.

This is what I want to achieve:
I will leave the ghostshooter game as is so that the monster is destroyed with an explosion. I will create a new object, so that when the bullet collides with it, a word will appear and then fade.

1. Where do I add this new condition of bullet colliding with new object?
2. Where can I save a list of words that I would like to appear?
3. How do I get a different word to appear when the bullet hits the new object that I will insert?

I want to use one new object, but I want one of five words to appear every time the bullet collides with that object.

I appreciate all the help
Thanks
B
4
Posts: 6
Reputation: 200


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests