Ghosts and E-Mails

Get help using Construct 2

Post » Mon Aug 18, 2014 10:20 am

I've got an idea for something, but I don't know how to do it haha

So imagine a racing game, where you can email your lap times and ghost car data to a friend from inside the game - or at least be able to download a file which you send to a mate who then uploads it from within the game. Then when they play the game they see their own ghost and also their mates one(s).

Firstly - ghost cars, I'm thinking of storing the data of the cars position every frame in an array or something? I've never used arrays.

Second one - Emailing / sending data from within the game, not sure how to go about this. Maybe email / downloading is the wrong way to go about it even. A buddy / user system might be better.

Anyone have any tips on how to get started coming up with a solution to this?

Cheers
B
44
S
13
G
8
Posts: 622
Reputation: 7,417

Post » Mon Aug 18, 2014 11:12 am

For ghost cars, I would store the position and angle every 0.3 seconds or so, along with a timestamp, and the game would have a built in reader that would interpolate the values between two saved times to return the angle and position.

A linear interpolation between them seems sufficient for a first test.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
54
S
22
G
18
Posts: 2,123
Reputation: 17,150

Post » Mon Aug 18, 2014 12:59 pm

@Aphrodite thanks, I'll give that a go I am also thinking about maybe storing the input commands for each ghost and replaying that data onto a 'real' car on the track without collision
B
44
S
13
G
8
Posts: 622
Reputation: 7,417


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 29 guests