Simple RPG Item Menu

Get help using Construct 2

Post » Tue Aug 19, 2014 3:12 pm

Hello!
I'm trying to make an RPG system In Construct 2 for practice.
I want to make a menu where the player can see the items he has and their quantities in a list.

Here is an example-
http://fc04.deviantart.net/fs71/f/2012/ ... 5m9dhj.png

What would be the most efficient way to approach this?
I'm good with variables and booleans, but anything more than that might be too much for me...
Is something like this possible to make?
B
3
Posts: 9
Reputation: 179

Post » Tue Aug 19, 2014 4:28 pm

there are at least two examples in the FAQ:

how-do-i-frequently-asked-questions_t63692
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Aug 19, 2014 6:01 pm

Really?
I can't seem to find one, all I see are in the drag n' drop style with grids...
Is there one that makes a list?
B
3
Posts: 9
Reputation: 179

Post » Tue Aug 19, 2014 9:31 pm

You create lists by making text objects..

You set the text from either variables or from an array..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Aug 20, 2014 1:27 pm

Yes, but how I can I make a list scrollable?
B
3
Posts: 9
Reputation: 179

Post » Wed Aug 20, 2014 4:28 pm

If your items are in array you could just draw portion of the list comparing the scroll position. So in this case when you scroll the list you could make repeat loop 18 times from the scroll position that would be the first item to show. In this case Potion. Or if you want some fancy smooth scrolling maybe 2 after and 2 over what is shown and mask the areas. But really there are many options to do this
B
34
S
9
G
3
Posts: 517
Reputation: 5,246

Post » Thu Aug 21, 2014 4:31 pm

B
21
S
8
G
6
Posts: 177
Reputation: 8,134

Post » Fri Aug 22, 2014 12:43 pm

@Katala
Could you please make me a small capx with an example of what you are suggesting?
It would really help me understand better! thanks!

@mrcgkh
Thanks for the example even though it's different than I had in mind I might be able to modify it to suit my needs...

I really want to see Katala's suggestion in action though!
Thanks for the help guys!
B
3
Posts: 9
Reputation: 179

Post » Fri Aug 22, 2014 7:39 pm

Here's a rather complete example where I tried to replicate your screenshot as much as I could. No interaction with items can be done, but that wouldn't be hard to implement.
You do not have the required permissions to view the files attached to this post.
B
75
S
31
G
27
Posts: 1,000
Reputation: 20,735

Post » Fri Aug 22, 2014 10:12 pm

I ended up making it a bit differently since there was one nasty bug on the first one when the item count wasn't multiple of two (or the row width).
Maybe I could improve it at somepoint since it seems there is no tutorial for this type of jrpg inventory.
You do not have the required permissions to view the files attached to this post.
B
34
S
9
G
3
Posts: 517
Reputation: 5,246

Next

Return to How do I....?

Who is online

Users browsing this forum: FacuLNF, t redeemed t and 11 guests