How do I Create An Item Examination Screen?

Just started using Construct 2? Post your questions here

Post » Mon Mar 06, 2017 1:32 pm

You know how when you come across a mysterious note in a game, and you select it, and it pops up onscreen allowing you to read it while the rest of the game pauses, and then you press a key to put the note back down and resume the game? Yeah, that, lol. I think I can figure it out with just one note, but there are several notes to be found in my game.
Image
B
8
S
2
G
1
Posts: 89
Reputation: 1,230

Post » Mon Mar 06, 2017 6:05 pm

Hello Milanbaudelaire,

As with all game development, there are multiple ways to accomplish what you're asking for.

First off, what kind of input are you going to use? Keyboard? Mouse? Touch?
B
10
S
3
G
2
Posts: 8
Reputation: 1,548

Post » Mon Mar 06, 2017 9:46 pm

Hi!
I'm creating a point-and-click game with additional keyboard input.
B
8
S
2
G
1
Posts: 89
Reputation: 1,230

Post » Tue Mar 07, 2017 2:43 pm

I use that in my point and click games.

You can reposition an item sprite to the center of the screen and then enlarge it using the Size command for that sprite and then either when they click on the sprite or after a set time put the size back to what it originally was and put the sprite position back where it was.

Example:

On Note Clicked: Set Note Position X and Y (center of your layout is best)
............................: Set Size of Note Width and Height (larger dimensions for users to see)
.............................: Wait 5 Seconds
..............................: Set Note Position X and Y ( where you want the note to return to)
..............................: Set Size Of Note Width and Height (Original dimensions)

That works well for examining an object and you can also set the cursor sprite to a magnifying glass when it is over the object so they know to click on it and take a look and then reset the cursor to normal when the enlarged sprite is reset to original size and position.

If you want it to look real fancy create a sprite of an examination frame and background and set that in the middle of your layout and make it invisible. When they click on an item to examine make that frame sprite visible and set your item sprite to the position of the frame and enlarge it.

That make the item stand out so it can be seen. Then make the item sprite return to original size and position and make the examination frame invisible. Makes it look snazzy like the pro games.

Guess I should do a tutorial on this huh?

OK here is the tutorial I wrote for this with a CAPX example:

https://www.scirra.com/tutorials/9448/how-to-create-an-item-examination-screen
Last edited by lamar on Tue Mar 07, 2017 3:42 pm, edited 1 time in total.
Banned User
B
28
S
7
G
58
Posts: 1,229
Reputation: 34,825

Post » Tue Mar 07, 2017 3:41 pm

OK here is the tutorial I wrote for this with a CAPX example:

https://www.scirra.com/tutorials/9448/how-to-create-an-item-examination-screen
Banned User
B
28
S
7
G
58
Posts: 1,229
Reputation: 34,825


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests