My examples

Get help using Construct 2

Post » Fri Nov 04, 2011 8:36 am

I'll upload all my examples here so i won't clutter the forum with lots of posts :D


Angry Nerds

Angry Birds style Physics example

http://dl.dropbox.com/u/45711709/angrynerds.capx


Anti Cheat Protection

Simple Anti Cheat protection

http://dl.dropbox.com/u/45711709/anticheat.capx


Gesture recognition

Simple Gesture recognition based on Rojohounds work in Construct Classic

http://dl.dropbox.com/u/45711709/gesture.capx


Lemmings Engine

Very basic Lemmings style engine. Only shows you how to make holes in terrain and move a sprite according to the pixelcolor.

Note: Needs the Canvas plugin by @R0j0hound

http://dl.dropbox.com/u/45711709/Lemmings/Lemmings.capx

Online Highscore

Simple online Highscore example including PHP-files.
Don't forget to chmod the script files to 777 or what you see fit so they can actually create the highscores file and update it.

http://dl.dropbox.com/u/45711709/score.rar


Timer Counting UP in Minutes & Seconds

This Timer counts the time that has passed since the layout was started and converts it to minutes and seconds.
Theres probably an even easier way to do this but this works fine for me :D
Note that in the example the Timer is set to 0.01 for testing purposes, set it to 1 for realtime.

http://dl.dropbox.com/u/45711709/Timer.capxIze2011-11-25 08:13:47
B
33
S
6
G
7
Posts: 338
Reputation: 7,424

Post » Fri Nov 04, 2011 11:00 am

The way you implemented the gesture detection is clever !
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Fri Nov 04, 2011 11:35 am

Thanks but i can't take credit for that cause i only ported it from Construct Classic using an example made by @R0J0hound :)
B
33
S
6
G
7
Posts: 338
Reputation: 7,424

Post » Fri Nov 04, 2011 1:54 pm

Thank You very much Ize. I started studying PHP just for using it with C2. I was struggling with the part where you pass the Vars to PHP. Now, with that, i must learn how to pull a single variable from it. I was thinking in using loops, like for with fgets($file) to read every line. Then, when stop the loop based on a var, i grab the value on that line.
Im complicating things or there is another simple way to do it? Also .csv files can be read like txt files, right?
Sorry if i'm escaping from the scope of the C2 forums, but i think we need more PHP and Ajax examples like yours.(And yes, i've read the Ghengis's ajax tutorial, it's a good base for start)
B
5
G
2
Posts: 16
Reputation: 1,187

Post » Fri Nov 04, 2011 3:16 pm

very nice stuff, thanks!!!
ImageImageImageImageImageImage
B
93
S
20
G
13
Posts: 1,217
Reputation: 18,996

Post » Fri Nov 04, 2011 4:12 pm

thanks some good stuff here ;)
B
75
S
13
G
6
Posts: 5
Reputation: 6,511

Post » Sat Nov 05, 2011 5:53 pm

Added a new quick example on how to Convert Seconds (Timer UP)
B
33
S
6
G
7
Posts: 338
Reputation: 7,424

Post » Sat Nov 05, 2011 6:34 pm

@Ize thanks for the examples. High scores is one that gets asked for a lot. I am sure many people will want to check it out.
B
18
S
8
G
7
Posts: 120
Reputation: 5,630

Post » Sun Nov 06, 2011 9:00 am

Fuuuuuuu! This is perfect, just what I'm after
B
39
S
12
G
8
Posts: 580
Reputation: 7,108

Post » Fri Nov 25, 2011 8:14 am

Added a new Lemmings style engine! :D
B
33
S
6
G
7
Posts: 338
Reputation: 7,424

Next

Return to How do I....?

Who is online

Users browsing this forum: kamens503, Yahoo [Bot] and 26 guests