Would it be possible with construct 2?

Discuss game development design and post your game ideas

Post » Mon Mar 04, 2013 8:24 am

I am not sure if this is more a topic for this forum or for the how to section so if this is the wrong place please move it to the correct forum.

My question is more if it would be possible to make a game like:


  • http://codeincomplete.com/projects/racer/v4.final.html = final game.

  • http://codeincomplete.com/posts/2012/6/22/javascript_racer/ = article.





With construct 2, and if so what would be the general tips for creating such a game and if / if not it would require plugins to achieve it with construct 2? The way he does curves/hills and pseudo 3d is quite nice so.
B
2
Posts: 9
Reputation: 443

Post » Mon Mar 04, 2013 6:23 pm

I think this is possible.

It would use a ton of sprites, though, and I don't really know how well construct 2 handles all of those.

The road surface isn't a surface at all. It's a stack of sprites. These sprites slide along the X axis for left/right turns, and along the Y axis for height up and down.

They're a horizontally aligned rectangle in shape, and there are multiples of the same color (let's say 3) then 3 more of the darker grey, then three more of the lighter grey, etc.

I don't think this is particularly difficult to implement; I'd draw a picture, but the ascii art would be horrible. I'll try to anyway...



+---------------------------------SCREEN----------------------------------+
+                                                                         +
+                                                                         +
+                                                                         +
+                                                                         +
+                                                                         +
+                                                                         +
+                                                                         +
+                                                                         +
+                                                                         +
+               +--------ROADSPRITE 3---------+                          +
+             +--------ROADSPRITE 2---------+ |                          +
+           +--------ROADSPRITE 1---------+ |-+                          +
+           |   +----CARSPRITE -----+     |-+                             +
+           +---|                   |-----+                               +
+               +                   |                                    +
+               +                   |                                    +
+               +-------------------+                                    +
+---------------------------------SCREEN----------------------------------+


This shows a slight turn to the right.


Keep in mind there are many more road sprites than this, but this should point you on the "how".

Hope this helps,
-john
B
15
S
4
G
1
Posts: 15
Reputation: 1,339

Post » Mon Mar 04, 2013 8:12 pm

Possible, but hard :)
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Tue Mar 05, 2013 8:36 am

Hey and thank you jgordos / rory. I somehow expected it to be with sprites. And then draw your road further and further with each tick or something like that. Instead of how it is done now everything is drawn when the game is fully loaded. Guess its easier to look at the code (since its free for use) and improve the game through regular javascript. Instead of having to recreate everything within construct 2.

Thank you anyways for your help :)
B
2
Posts: 9
Reputation: 443

Post » Tue Mar 05, 2013 9:16 am

You really wouldn't need too many sprites, and even if you did a full resolution of tiles, the background doesn't need to have collisions enabled which is why tons of sprites have issues.

All you would need to do is create the appropriate animations. NES and SNES games did it with animated tiles, but you would need a lot less of those in construct 2.

Just cut the road into animations of the directions towards the horizon you want it to go and vary them based on the track layout. You could use an array or something to determine where the car is on the track and based on the upcoming XY of the array what is displayed.
B
15
S
4
G
4
Posts: 294
Reputation: 3,225

Post » Tue Mar 05, 2013 5:36 pm

There's a recent thread you might find interesting:
http://www.scirra.com/forum/is-mode-7-possible_topic61815_page1.html
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,000

Post » Tue Mar 05, 2013 7:57 pm

I have to say i am incredibly impressed with those examples Ramones. They really are amazing.
Especially the mode 7 effect could achieve more or less the same effect as the example above. Though i am not sure if it would be possible to create hills with that technique.
B
2
Posts: 9
Reputation: 443

Post » Tue Mar 05, 2013 7:59 pm

Just a quick note, it might be less burdensome on resources to use Tiled Backgrounds for a lot of the static stuff, particularly the road, trees, etc. You can do a lot with backgrounds and they require far less processing power.
B
16
S
6
G
2
Posts: 152
Reputation: 3,764


Return to Game Development, Design & Ideas

Who is online

Users browsing this forum: No registered users and 1 guest