Stencyl 3.4.0 is now out. Get it now!

Tuo's 26 (+2) StencylForge "Demo-" Games & Chat (Updated: 05.21.2016)

ridhwaan08

  • Posts: 288
Hi Tuo

thanks for all the help

could you make a dungeon demo where there is a key and if you collide with it the door opens and you can progress to the next scene
Nothing is impossible, the word itself says 'I'm possible'!

Audrey Hepburn

Tuo

  • *
  • Posts: 2469
This might take a bit... I might use it as the basis for my next big thing. If I can pull of my plans, it will be one of the most dramatic things I've ever made in Stencyl (and I've done some pretty insane stuff). It will take a long time to make though.

For now, just the idea of using a key to open a door is not that bad alone. The basic idea is to make a game attribute that is defaulted to some "off" value. When you pick up the key, set that game attribute to its "on" value. Then, when you collide with the door, see if the game attribute is in it's "on" value (if so, switch scenes, if not then do nothing or message to find the key).

I didn't say to just use a boolean in case you are planning on using multiple keys for a single door. In that case, you could set the game attribute to 0 when the scene is created (to keep reusing the same game attribute over many scenes) and set it to itself + 1 each time you get a key. Then, for the door, you just have to check that the number equals the number of keys in the scene.

Make sense?
Don't look to me but rather to the One who is the reason for what I do. :)

If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.

If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (http://community.stencyl.com/index.php/topic,16160.0.html)

ridhwaan08

  • Posts: 288
Hey thanks

yup it does I have a behavior like that my only problem is that the scene switching because my behavior is for my actor I can only choose one scene to switch into (but I think I have got a solution to the problem from gplar )I just wanted a demo to explain it to me.
Nothing is impossible, the word itself says 'I'm possible'!

Audrey Hepburn

Tuo

  • *
  • Posts: 2469
For a good, creative way to switch scenes, see Abigayl's second tutorial set (http://www.kongregate.com/games/Abigayl/stencyl-2-0-tutorial-1-basics). The basic idea is to name each scene as a number and then when switching, add 1 to the number and convert it back into a scene.
Don't look to me but rather to the One who is the reason for what I do. :)

If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.

If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (http://community.stencyl.com/index.php/topic,16160.0.html)

solvalou

  • *
  • Posts: 48
Great work on the demos you've been putting out! I've been learning quite a few things from it  :)

Tuo

  • *
  • Posts: 2469
Thanks :). It helps to know that my Demo- games are helping out :)
Don't look to me but rather to the One who is the reason for what I do. :)

If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.

If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (http://community.stencyl.com/index.php/topic,16160.0.html)

konsoradical

  • Posts: 69
Hey Tuo, first i just want to say your helping a lot of people out with these demos, keep up the good work! I also want to request something. im using the common Fire Bullet behaviour, how would i implement an upgrading system in which when i have enough points i can buy a different type of bullet which i can use for a certain amount of time? All in a behaviour? To break it down there would be a game attribute that collects coins, then if you have the right amount of coins or over you could purchase one of these bullets. Then somehow it would set the current Fire bullet's actor to the new bullet. however only for a certain amount of time (like a limited time powerup). I know your a busy guy but if you find the time to do this, that would be amazing! :D

Tuo

  • *
  • Posts: 2469
I will see about doing that Kon. For the meantime, you can take a look at both my "Upgradable Shooter" and "Platformer 3" games to see how to do upgrades.
Don't look to me but rather to the One who is the reason for what I do. :)

If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.

If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (http://community.stencyl.com/index.php/topic,16160.0.html)

konsoradical

  • Posts: 69

MrMusicalLion

  • Posts: 95
How about a Scribblenauts clone demo?

i.e a platformer which includes the ability to draw *basic* pictures ingame which would then customize how the world looks ingame.

Tuo

  • *
  • Posts: 2469
Lion, I'm going to have to pass on that one. I can tell you the basics as to how I would go about doing it though. First, make blank images that are the sizes of the actors, with all of the collisions already set up in those actors. Then, when the user comes to a new platform, bring up a new scene that shows an outline around the blank actor and let the user doodle on it (have fun making a painting program in Stencyl ;) ). Afterwards (and here's what I can't do), you save the image, likely either as a pixel array or as a bitmap variable and draw that pixel array on top of the actor. That part will require actual coding, and while I have some experience with pictures in AS3, by the time that would be created, it might as well have been done in 3.0, which is HAXE-based, which I don't know the syntax for. A different approach that I have used myself (albeit problematically), would be to use "getpixel" collision registration for the user-created platforms... however that limits the color options and can be laggy if done improperly.
Don't look to me but rather to the One who is the reason for what I do. :)

If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.

If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (http://community.stencyl.com/index.php/topic,16160.0.html)

MrMusicalLion

  • Posts: 95
dang, ah well. Thanks for the info though! ^_^
A paint program in stencyl? Hrmm..

Well in any case, how about a demo on fundamental interactivity with images? :P
i.e a limited editor which allows you to upload an image, and then rotate, resize or crop it. The most basic image editing ^_^

If you could do that, that would be fantastic.
If not, ah well :)

Tuo

  • *
  • Posts: 2469
Kon's game is coming along... I've done many space shooters, but I'm trying to do this one to overcome some of the issues I've had in the past. I finally got the z-layer working (after TWO years of trying to figure it out... never realized I had to create the layers first *facepalm*), so that's helping some. So some special issues are solved, but one major one is still a headache (anyone who has made a space or any shooter knows that bullets can look like they are going at different speeds as the player changes their speed... was going to try to equalize it).

BTW, if anyone (for whatever reason) wants to watch me work, I stream my programming if I am on (kinda hard to do it if I'm AFK :P) and someone wants to see it. ;)
Don't look to me but rather to the One who is the reason for what I do. :)

If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.

If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (http://community.stencyl.com/index.php/topic,16160.0.html)

Tuo

  • *
  • Posts: 2469
Lion, I might be able to do that once I finish up my current one for Kon... will have to see if the method I am thinking of (drawing polygons) will work... However, it will be a Paint program, NOT an image upload/crop/etc. Again, those ideas require actual coding, and I am not doing any coding work until 3.0 officially comes out (as I would be doing them in Haxe instead).

Posting this from my livestream to store it as a possible Demo- for the future:
5:02 AM  Jeneel: Tuo, can you give me an idea to make a cross word puzzle?
5:46 AM  Jeneel: Not a cross word, but a word hunt. Where you cross out the words in a matrix full of letters.
Don't look to me but rather to the One who is the reason for what I do. :)

If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.

If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (http://community.stencyl.com/index.php/topic,16160.0.html)

Tuo

  • *
  • Posts: 2469
FYI, this new space shooter demo will be a bit intensive on the coding... but it looks sweet! :D

I have managed to create space with near-perfect wrap-around capabilities and dynamic bullets. What I mean is that the bullets no longer look awkward based on the speed of the ship as they are constantly being updated by the speed of the ship (took some trig, but it works), and the wrap-around is almost seamless... no bouncing feeling, just a true wrap. Only the bullets can show that your wrapped around... and I'm working on fixing that right now :). This has to be one of my favorite works to date (out of the 50 or so programs I've made ;D)!

EDIT: Seamless now entirely. A good eye can catch a repeating background, but that's not even from the wrap-around  8)

« Last Edit: January 08, 2013, 12:52:01 pm by Tuo »
Don't look to me but rather to the One who is the reason for what I do. :)

If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.

If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (http://community.stencyl.com/index.php/topic,16160.0.html)