Scripting gameplay

Discussion and feedback on Construct 2

Post » Mon Nov 21, 2011 6:56 pm

I'm new to Construct. I want to make a game with a large area/map, and script missions.
Is this possible in C2? What is the most efficient method? Create multiple layouts for each mission?
B
8
G
1
Posts: 17
Reputation: 809

Post » Tue Nov 22, 2011 10:18 am

Are you looking to make an RPG? How intricate would you want the scripting to be?

Would you want to just script encounters, I.e. some simple battles or isolated NPC interactions?

Or would you want a full blown quest mechanism, which would present the player with a goal, keeps track of all of the necessary tasks and sub-tasks required to complete the goal, and manages object and location access so that, for instance before you can open the chest you need the dragon key, but to get the dragon key, you need to bring the pirate princess a blueberry muffin, etc?

One is a lot easier than the other.
Don't see the fnords and they won't eat you!
B
75
S
16
G
12
Posts: 322
Reputation: 11,608

Post » Tue Nov 22, 2011 11:14 am

I am thinking of a single map, but have a script to build the levels.
Like setup waypoints, add targets. Also, have different start points.

Currently, the levels/layouts have to be predefined when in editor, and stays the same. I was wondering if things can be added on the fly using a main script.
B
8
G
1
Posts: 17
Reputation: 809

Post » Sat Aug 03, 2013 10:56 pm

I'm thinking of implementing the "full blown quest mechanism" with concurrent quests, and sub-tasks like @Wastrel mentioned. Any tips?
B
12
S
2
G
3
Posts: 86
Reputation: 2,955

Post » Tue Aug 06, 2013 6:38 pm

@onion, I haven't attempted (or had time) to work on a quest mechanism in a long time.

I wish I had some good tips for you. I think 95% of the work will be in planning, before you code anything. I used a diagramming app (i.e. Microsoft Visio) and a spreadsheet to list out all of the objects and events, then mapped out their interactions.

You have to consider the life of each object, and how every event could possibly affect it. The more objects and events you have, the more complex it gets.

You will also need some way to manage the state of the game, like with a finite state machine. @rexrainbow has an FSM plugin, but I haven't had a chance to mess with it yet.

I wish I could be more helpful.
Don't see the fnords and they won't eat you!
B
75
S
16
G
12
Posts: 322
Reputation: 11,608

Post » Thu Aug 08, 2013 7:00 pm

Damn I was hoping there would be something that would make the process easier, (no idea what that would look like - it'd just help, lol).

Could you explain though how a finite state machine would help me? I don't really understand what it is.
B
12
S
2
G
3
Posts: 86
Reputation: 2,955


Return to Construct 2 General

Who is online

Users browsing this forum: Psychokiller1888 and 12 guests