Games Achievements My Kong Sign In

Comments for Stencyl Tutorial 2: Attributes, Etc.

« Back to Stencyl Tutorial 2: Attributes, Etc.

Halagaz

Dec. 04, 2011

Under rating threshold (show) a little something) in the "controls" codes may be such a thing that in "when it collides..." you must place "fade out..." in the first position. otherwise you will be immortal)) at least in my version of "stencyl" P.S. Must i say that tutorial is great?)

+ - !

(2)

Developer response from Abigayl

Sorry, I assumed that the default was "fade out" for everyone for the first position. I'm glad to see that you are playing around with the coding though, tis the best way to learn :)

Rob1221

Nov. 28, 2011

Under rating threshold (show) For duplicating and removing blocks you can also hold down Alt or Shift while clicking and dragging with the mouse.

+ - !

(2)

Developer response from Abigayl

Thank you! I have been waiting for the proper time to let users know about the shift-click (which I use many times per day :P), but I was unaware of the alt-click. Will update the description to include that (doesn't really fit in the two lines per scene). EDIT: Will be mentioning both in the upcoming tutorial :)

Varionso

Dec. 25, 2012

Under rating threshold (show) These are actually quite informative. I've dabbled in quite a few game developing utilities (i.e. game maker, Unity, etc.), and found this...along with your tutorials, the easiest to grasp. Later on down the road, I'm hoping it'll lead to bigger and better ventures. All this thanks to you. :)

+ - !

(1)

Developer response from Abigayl

I'm glad it helped you to get your start :). Best of luck to you!

LordPie99

Sep. 07, 2012

Under rating threshold (show) OH nevermind, should look around before asking :p

+ - !

(1)

Developer response from Abigayl

Glad you found it ;). Yeah, it's in a different place than the rest :P.

deBug121

May. 30, 2012

Under rating threshold (show) My Hero doesn't die when it touches the enemies. Here's the coding: http://i1112.photobucket.com/albums/k489/breakawall/stencylcode.png

+ - !

(1)

Developer response from Abigayl

Switch the group for colliding shape to actor 2 instead of actor 1 and it should work :)

Peragon

May. 26, 2012

Under rating threshold (show) :( When I open up Actor Behaviors, I do not get the categories, like you do... Any help? Anyone?

+ - !

(1)

Developer response from Abigayl

You don't need categories. Just ignore that part. This was made with Stencyl 1.1, which is very rarely used now (although the concepts are the same). I do have the start to the 2.0 tutorial set done, which you can find here: http://www.kongregate.com/games/Abigayl/stencyl-2-0-tutorial-1-basics

DrJon73

Apr. 03, 2012

Under rating threshold (show) Again a great tutorial, just like your first, but you told me that 8-way movement was in this tutorial, but it wasn't! I feel a little lied to...

+ - !

(1)

Developer response from Abigayl

Sorry, my bad. But it is in tutorial 3 (just double-checked and it's indeed there :P).

qwertyuiopazs

Mar. 28, 2012

Under rating threshold (show) My character goes through the walls and gets stuck. how do you stop this?

+ - !

(1)

Developer response from Abigayl

That's in tutorial 5... I was trying to figure out the best, simplest way to do edge detection and nothing ended up working, so I had to show my less-elegant ways of keeping the playing in-bounds.

boxheadwinner

Mar. 16, 2012

Under rating threshold (show) Oh. I found it. Your coordinates didn't fit on my screen so I had to change them.

+ - !

(1)

Developer response from Abigayl

Aye, I use 640x480 as my default but the main default is 640 x 400 or something (forget the exact measurements)

ManWithChicken

Mar. 16, 2012

Under rating threshold (show) It won't let me add the "_ as text" piece into the "_+_" piece, and it says there is an error when I type "Current Score" into that box, too.

+ - !

(1)

Developer response from Abigayl

Make sure you are using the [ + ] that is for TEXT not for NUMBERS (there is a big difference)

ManWithChicken

Mar. 14, 2012

Under rating threshold (show) Wait, no, it's in the Numbers and Text.

+ - !

(1)

Developer response from Abigayl

Ah, someone using the Stencyl 1.1 version... this tutorial originally had the comparison operators from the "Numbers & Text" palette, but so many were using a later version that I had to photoshop my guide to show the updates. Glad you found them though.

ManWithChicken

Mar. 14, 2012

Under rating threshold (show) With the updated StencylWorks there is no "_ < _" option. I can't do a highscore...

+ - !

(1)

Dauchim

Mar. 09, 2012

Under rating threshold (show) Keep the good work btw :)

+ - !

(1)

Developer response from Abigayl

Glad you figured out the error. Things like that will keep coming up (even I do similar mistakes sometimes), so keep a sharp lookout. ;)

ichee007

Feb. 02, 2012

Under rating threshold (show) My score is not in the game O.o how can i fix it

+ - !

(1)

Developer response from Abigayl

Can you explain a bit more what the issue is? Perhaps add screenshots of the behaviors (upload then send me the link)

MeButYou82

Jan. 30, 2012

Under rating threshold (show) Which scene do you attatch the behavior to when it loads the save?

+ - !

(1)

Developer response from Abigayl

You attach it to the opening scene, or whatever is the very first scene in your game. It's basically the first thing you need your game to do.

luqui01

Jan. 17, 2012

Under rating threshold (show) Hey, this tutorial is very good.

+ - !

(1)

Developer response from Abigayl

Thanks :)

jelmerdokkum

Jan. 11, 2012

Under rating threshold (show) When Making The Score Drawing Thingy You Have To Drag The Score Attribute In To The CreateEnemies Behavior, But We Created The Attribute In The Controls Behavior. Do We Have To Create The Attribute In CreateEnemies Too? Because Then Theres No Data What The Value Of The Score Attribute Contains. Please Answer Greetz!

+ - !

(1)

Developer response from Abigayl

Game attributes (purple) are stored globally, so any behavior can open it. The issue is that when you currently have a behavior open, it won't show until you close the behavior and re-open it. Sorry, should have mentioned that detail.

FusionPickle

Jan. 08, 2012

Under rating threshold (show) Great tutorial as always. :) I was wondering, it keeps saying Stencyl is installed into an unwriteable directory. I have tried moving it to the folders it says but it still does this. But it doesn't seem to affect my game in any way. Do you know how to get rid of this/ how it will affect my game? 5/5

+ - !

(1)

Developer response from Abigayl

I remember others who have seen that issue. It doesn't seem to be too bad if you are running as the administrator, but you still may want to post it to the Stencyl forums to see if someone else knows more. Here's the related topic I found: http://community.stencyl.com/index.php/topic,5389.msg34778.html#msg34778

GreenAnt

Dec. 28, 2011

Under rating threshold (show) I love your tutorials! Thanks to you Stencyl doesent seam as hard to understand anymore =D Its great that youre giving the revenue to charity too, I stayed untill I had the top highscore thanks to that lol

+ - !

(1)

Developer response from Abigayl

Congrats on the highscore! :) I'm glad to be of help to those learning Stencyl :)

DemonOfMist

Apr. 16, 2015

Under rating threshold (show) Wow I re-did this tutorial and I finished it even faster than my first time.

+ - !

(1)

Developer response from 0_Tuo_0

Aye, the more you learn, the faster you can go.

Shalk

Feb. 09, 2015

Under rating threshold (show) THanks! Loved this! I will continue learning with your videos :)

+ - !

(1)

Developer response from 0_Tuo_0

I'm glad you're liking them :).

Shenanigans97

Dec. 11, 2011

Under rating threshold (show) THank You! this got me into stencyl allot.

+ - !

(1)

Developer response from Abigayl

:) If there is anything missing that you would like me to cover, let me know.

GeniusSpark

Dec. 04, 2011

Under rating threshold (show) @Xand: Because sections are less overwhelming for beginners. Also, it's interactive and she needs to have a break than publish it all at once. Episodes fit more easily than anything.

+ - !

(1)

lSWATLLAMA

Nov. 26, 2011

Under rating threshold (show) Now I want to make an avoider game! I have an idea and the physics all layed out somewhat. You just increased my workload! :D! I liked how you used correct grammar, and didn't say "off of", which would be a double preposition and is incorrect grammar. There are two things I'd like to see though. 1. How to make something persist across scenes. I''ve always had trouble with that. 2. Random spawn points/explaining random numbers. I personally have some idea of how to do that in stencyl, since I've had coding experiences dealing with random numbers, but I'm sure most people are completely lost at that point.

+ - !

(2)

Developer response from Abigayl

Wow, someone noticed my grammar! I actually was improper a few times, primarily semicolon issues, just to keep the flow better. To my knowledge there is no way to make something truly persist across multiple scenes. There are two alternatives though: One is to group many scenes together into one giant scene (this tutorial actually is comprised of only 6 actors and 1 scene) or use a game attribute to store the (x,y) of the actor and create it at that point in the next scene. I may go into RNG more in-depth later on once I get a full taste of it in one of my game ideas (which would be almost 100% based on layers of RNG code).

lSWATLLAMA

Nov. 27, 2011

Under rating threshold (show) I've an idea for a future tutorial. Recycling Actors! To this day, I'm sad to say that I have no idea what recycling actors does.

+ - !

(1)

Developer response from Abigayl

That's one that will have to wait a while... last I read about them, it was bugged, so I never recycle actors either...

Toope00

Nov. 29, 2012

Under rating threshold (show) I can't find the drawing thing, somebody please help me.

+ - !

(0)

Developer response from Abigayl

You have to Click "Add Event", then go into "Basics" to find it. See the "Extra Information" section in the news posts. :)

MichaelL214

May. 31, 2012

Under rating threshold (show) The Toutorial is hard how do u skip it

+ - !

(0)

Developer response from Abigayl

Care to explain what was hard about it via PM?

dreeseaw

Apr. 07, 2012

Under rating threshold (show) Why is my score not going up mid-game? and then my highscore is 0?

+ - !

(0)

Developer response from Abigayl

Did you make sure to use a "do every" loop instead of "do after"? Also, are you sure the behavior is attached? If you want to, upload the game to Forge and send me a PM with the name, and I'll try to see what's going on with it.

wefatandfat

Dec. 13, 2012

Under rating threshold (show) how do u upload a game'

+ - !

(0)

Developer response from Abigayl

You first publish it to flash. Then, go to the site that you want to upload it, and find the upload area, and import the file there. (On Kongregate, there is a link at the bottom of the page for developers/uploading a game.)

DemonOfMist

Apr. 16, 2015

Under rating threshold (show) I don't understand the logic behind high score. Don't we want the high score to be score when its higher?

+ - !

(0)

Developer response from 0_Tuo_0

It's saying that if the current score is higher than the high score, then replace the high score with the current score.

DemonOfMist

Apr. 10, 2015

Under rating threshold (show) Yay! I completed this tutorial. I have to say you learn a lot at first and feel overwhelmed, but once you reach the end product, it comes together. I am just worried I will forget what I learned, but I can always come back to the tutorial. Thanks and moving to the next one!

+ - !

(0)

Developer response from 0_Tuo_0

The learning cycle is indeed one of growth and relapse. Just make sure you're making two steps forward and only one step back. I've even had it happen to me (when I had to check tutorial 2.5 a while back I had totally forgotten about that option for making menus; I was pleasantly surprised and the brilliant simplicity of it... which I had forgotten about after teaching others about it :P).

jersmall

Jul. 20, 2014

Under rating threshold (show) thx start screen however doesn't work on death or start?

+ - !

(0)

Developer response from 0_Tuo_0

I don't understand your question. Can you rephrase it?

Max__Spammer

Apr. 07, 2013

Under rating threshold (show) Umm . . . maybe its just my version but when i press attributes and type speed then choose number and press ok, it just showing up as this http://prntscr.com/znz11

+ - !

(0)

Developer response from Abigayl

Yes... what's the problem? That's a getter (you can drag it in to use it wherever you need a number). If you want to set it, change to the setters option.

fawful8899

Dec. 13, 2012

Under rating threshold (show) quite good

+ - !

(0)

Developer response from Abigayl

Thanks

workforgames

Oct. 30, 2012

Under rating threshold (show) this is great i think im getting a hang of it all =)

+ - !

(0)

Developer response from Abigayl

Good :). I'm happy it helped

sthreet300

Oct. 12, 2012

Under rating threshold (show) after adding speed and adding how it is set my ship willnot move with arrow keys... ...acts like speed is 0... ...and gets really laggy...

+ - !

(0)

Developer response from Abigayl

I would have to see your code to know what happened.

xandramas

Aug. 21, 2012

Under rating threshold (show) Nevermind, figured it out. My game screen was smaller than 440. 340 made it fit

+ - !

(0)

Developer response from Abigayl

Glad you figured it out :). Default is 384 for height (although I personally thing the 3:2 ration looks a lot better).

xandramas

Aug. 21, 2012

Under rating threshold (show) any idea why it wont show my score on my screen?

+ - !

(0)

pansysk75

Aug. 02, 2012

Under rating threshold (show) I saw the comment boxheadwinner made but where are those coordinates that I'm supposed to change?

+ - !

(0)

Developer response from Abigayl

When you made the game, you decided the size of screen to make it. If you have forgotten, check either the dashboard (older versions of Stencyl) or the Settings button near the top to check the size. Then, use those numbers.

pansysk75

Aug. 02, 2012

Under rating threshold (show) Hi and thanks about the tutorial.I've got an issue that you can't see the score and the highscore.Can someone help me?

+ - !

(0)

Developer response from Abigayl

When you upload the game to Kongregate, if you want to see the leaderboard, be sure to check "display in leaderboards" option and give it a name.

zharek

Jul. 10, 2012

Under rating threshold (show) First off, to Areibman: I noticed the same difference in my Stencil, but as I downloaded mine yesterday i think this might be an update where they have tried to simplify the program a little and also have renamed some buttons. Rest assured that I have completed both tutorial 1 and 2 without problems, so the program works and the tutorial is still valid, you just have to figure out some of the new names for things. For Abigayl: I tried to make it so that my character died when leaving the screen, resulting in the same "Fade-out-reset-fade-out"process. This I did by giving him a trait that killed him when leaving the screen, and one that made the game fade when he died. However - this only works when he leaves the top of the screen, all other edges simply makes him disappear without coming back. Any tips? In advance, thanks for taking the time to help out with a problem that must seem ridiculously simply to you.

+ - !

(0)

Developer response from Abigayl

That's a common question, one that is answered in this tutorial set, part 5, and to a degree, set 2, part 2 (that one only covers the bottom, but you can adjust to to be in all directions). The basic idea is to check in "always" to see "if [x of self] < 0 OR [x of self - width of self] > [screen width] OR [y of self] < 0 OR [y of self - height of self] > [screen height]" (then do your coding, either killing self or pushing self back on to the screen). To make it work, in "when created" set self "make self always active" to make it still take in coding when beyond the screen. Hope that helps. :)

Directorx5397

Jun. 21, 2012

Under rating threshold (show) I have the dumbest question ever: What is the difference between setters and getters? Sorry, I'm new to this thing.

+ - !

(0)

Developer response from Abigayl

A setter will store the information in the attribute, and a getter uses that information from the attribute. For example, if you "set X to 10", you are telling the computer that when it sees the "X" to think of "10" instead, so when you "get X", the computer spits out "10" instead. Does that make more sense?

korkoran7

Jun. 12, 2012

Under rating threshold (show) Awesome tutorial by the way! I don't know if I will get much into this, but it is fun nonetheless! And these new programs for programming make it much easier :D

+ - !

(0)

Developer response from Abigayl

Thanks, and agreed, it does make the learning easier :)

korkoran7

Jun. 12, 2012

Under rating threshold (show) If you have a problem with not seeing your score you probably have to change the x and y coordinates. That's what I had to do. I just messed around with the coords for about 1 minute to find what worked for me. It may depend on the "scene properties" and the width and height you entered?

+ - !

(0)

Developer response from Abigayl

Yep, the coordinates in the upper left are (0,0) and the bottom right is (width, height), so if you are trying to put an actor in the corner, you will need to adjust accordingly. To get the precise corner, regardless of size, in the scene palette, you can find a code that gets the scene height/width.

Sanfdz

Jun. 04, 2012

Under rating threshold (show) weird, my player moves to the right without me pressing any key and the score7highscore doesnt show up

+ - !

(0)

Developer response from Abigayl

Could you send me a screenshot of your code or upload it to forge to let me see it?

deBug121

Jun. 01, 2012

Under rating threshold (show) Thanks for that, my game's fine now.

+ - !

(0)

Developer response from Abigayl

Glad to help :)

Freeza1

May. 28, 2012

Under rating threshold (show) also i did everything the same but my enemies just build up and my game gets really laggy

+ - !

(0)

Developer response from Abigayl

It would help if I could see the game itself. Did you remember to tell the enemies to kill themselves when off screen? If not, that could be the issue.

xman123321

May. 22, 2012

Under rating threshold (show) what tool would you use for online multiplayer, plz help

+ - !

(0)

Developer response from Abigayl

If you are going for online multiplayer, Stencyl is not really the tool to use. You'll want to get familiar with using AS3 coding and likely have to get the Adobe official programming program (forget the name of it offhand). Online multiplayer game creation is ONLY recommended for advanced programmers (it's beyond my skill level).

neponoN

May. 05, 2012

Under rating threshold (show) Can you make a tutorial for multiplayer stencyls?

+ - !

(0)

Developer response from Abigayl

If you are looking for true multiplayer games, Stencyl is likely not the tool for you. It is designed for simpler games, and online multilplayer is much more complex. If you just mean local multiplayer, the basic idea is to split up the WASD controls to be one player and arrows to be the other (like Fire Boy & Ice Girl games).

zephidel

Apr. 19, 2012

Under rating threshold (show) Hi! I just want to ask a question. When submitting statistics to kongregate, are their values different for every user or are they shared?

+ - !

(0)

Developer response from Abigayl

The scores are individual for each user but go into the same shared leaderboards... I'm not exactly sure what your question is.

  • add a comment
Developers Players Support YouTube TikTok X (Twitter) LinkedIn
Join the conversation Join Discord
Terms Privacy Code of Conduct
© 2024 Kongregate