My examples

Forum Home Forum Home > Construct 2 General > How do I....?
 Post Reply Post Reply Page  123 5>
Author
4,219 Rep
Post Options Post Options   Quote Ize Quote  Post ReplyReply Direct Link To This Post Topic: My examples
    Posted: 04 Nov 2011 at 8:36am
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.capx

Edited by Ize - 25 Nov 2011 at 8:13am
Back to Top
5,295 Rep
Post Options Post Options   Quote Pode Quote  Post ReplyReply Direct Link To This Post Posted: 04 Nov 2011 at 11:00am
The way you implemented the gesture detection is clever !
Back to Top
4,219 Rep
Post Options Post Options   Quote Ize Quote  Post ReplyReply Direct Link To This Post Posted: 04 Nov 2011 at 11:35am
Thanks but i can't take credit for that cause i only ported it from Construct Classic using an example made by @R0J0hound :)
Back to Top
1,162 Rep
Post Options Post Options   Quote Zanuff Quote  Post ReplyReply Direct Link To This Post Posted: 04 Nov 2011 at 1:54pm
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)
Back to Top
9,990 Rep
Post Options Post Options   Quote TELLES0808 Quote  Post ReplyReply Direct Link To This Post Posted: 04 Nov 2011 at 3:16pm
very nice stuff, thanks!!!
Back to Top
3,921 Rep
Post Options Post Options   Quote walterlow Quote  Post ReplyReply Direct Link To This Post Posted: 04 Nov 2011 at 4:12pm
thanks some good stuff here ;)
Back to Top
4,219 Rep
Post Options Post Options   Quote Ize Quote  Post ReplyReply Direct Link To This Post Posted: 05 Nov 2011 at 5:53pm
Added a new quick example on how to Convert Seconds (Timer UP)
Back to Top
3,096 Rep
Post Options Post Options   Quote Ghengis Quote  Post ReplyReply Direct Link To This Post Posted: 05 Nov 2011 at 6:34pm
@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.
Back to Top
4,045 Rep
Post Options Post Options   Quote CrudeMik Quote  Post ReplyReply Direct Link To This Post Posted: 06 Nov 2011 at 9:00am
Fuuuuuuu! This is perfect, just what I'm after
Back to Top
4,219 Rep
Post Options Post Options   Quote Ize Quote  Post ReplyReply Direct Link To This Post Posted: 25 Nov 2011 at 8:14am
Added a new Lemmings style engine! :D
Back to Top
 Post Reply Post Reply Page  123 5>

Forum Jump Forum Permissions View Drop Down