How do I create my own file system for point&Click game

Get help using Construct 2

Post » Fri Feb 17, 2017 4:56 pm

I have the game using .XML but if is possible i want to create my own system with my needs. Also for translations to have a english.txt, german.txt ,etc...

My idea is have a sprite with an instance variable called "home_chair" so when the mouse is over the chair get the name("Old Chair) that is the first line. If i set look+chair then retrieve the second line: "Is an old chair i bought time ago" .

How looks the text file:

[home_chair]
Old Chair
Is an old chair i bought time ago
Can't be picked
Can't talk with it
etc...

All objects will have the same structure:
[Object instance]
Name (When the mouse is over the object)
Look
Use
Pick
Open
close
Give
Push
Talk


I search in the systems expresions with find(src), replace, right, tokenAt,etc... but i can't get it working.

Maybe there is a plugin, behaviours or something to do it more easy?
Last edited by matriax on Fri Feb 17, 2017 5:46 pm, edited 1 time in total.
B
24
S
10
G
3
Posts: 557
Reputation: 4,491

Post » Fri Feb 17, 2017 5:43 pm

I would use an array.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Fri Feb 17, 2017 5:56 pm

I need to use files for translation purposes, so i can send it and load after.
B
24
S
10
G
3
Posts: 557
Reputation: 4,491


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Google [Bot], ratboy3 and 34 guests