My examples Forum Home > Construct 2 General > How do I....? |
Post Reply
|
Page 123 5> |
| Author | |
Post Options
Quote Reply
Topic: My examplesPosted: 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 |
|
![]() |
|
Post Options
Quote Reply
Posted: 04 Nov 2011 at 11:00am |
|
|
The way you implemented the gesture detection is clever !
|
|
![]() |
|
Post Options
Quote Reply
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 :)
|
|
![]() |
|
Post Options
Quote Reply
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) |
|
![]() |
|
Post Options
Quote Reply
Posted: 04 Nov 2011 at 3:16pm |
|
|
very nice stuff, thanks!!!
|
|
![]() |
|
Post Options
Quote Reply
Posted: 04 Nov 2011 at 4:12pm |
|
|
thanks some good stuff here ;)
|
|
![]() |
|
Post Options
Quote Reply
Posted: 05 Nov 2011 at 5:53pm |
|
|
Added a new quick example on how to Convert Seconds (Timer UP)
|
|
![]() |
|
Post Options
Quote Reply
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.
|
|
![]() |
|
Post Options
Quote Reply
Posted: 06 Nov 2011 at 9:00am |
|
|
Fuuuuuuu! This is perfect, just what I'm after
|
|
![]() |
|
Post Options
Quote Reply
Posted: 25 Nov 2011 at 8:14am |
|
|
Added a new Lemmings style engine! :D
|
|
![]() |
|
Post Reply
|
Page 123 5> |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |