Comments for Stencyl Tutorial 2: Attributes, Etc.

avatar for GeniusSpark
GeniusSpark

Dec. 4, 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)

avatar for lSWATLLAMA
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).

avatar for lSWATLLAMA
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...

avatar for Toope00
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. :)

avatar for MichaelL214
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?

avatar for dreeseaw
dreeseaw

Apr. 7, 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.

avatar for jersmall
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?

avatar for RakshithaP
RakshithaP

Jul. 2, 2014

Under rating threshold (show) how to download them really they rae good i dont have net in home so need to download and watch in home.. thanq.. really awesome..

+ - !

(0)

Developer response from Abigayl

Unfortunately, there is no way to download them. I think there are ways to have a cached copy of the page for offline purposes, but I do not know how off the top of my head.

avatar for Max__Spammer
Max__Spammer

Apr. 7, 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.

avatar for fawful8899
fawful8899

Dec. 13, 2012

Under rating threshold (show) quite good

+ - !

(0)

Developer response from Abigayl

Thanks

avatar for workforgames
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

avatar for sthreet300
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.

avatar for juillardl
juillardl

Aug. 24, 2012

Under rating threshold (show) How old are you? If I may ask.

+ - !

(0)

Developer response from Abigayl

23. Why?

avatar for xandramas
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).

avatar for xandramas
xandramas

Aug. 21, 2012

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

+ - !

(0)

avatar for pansysk75
pansysk75

Aug. 2, 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.

avatar for pansysk75
pansysk75

Aug. 2, 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.

avatar for zharek
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. :)

avatar for areibman
areibman

Jul. 10, 2012

Under rating threshold (show) Thank you so much for your tutorials, Abigayl. The first one I completed was through the Stencyl site. The second one I attempted was your first basic tut through this site. Here's my problem, my stencyl program looks different than yours. First off I have a "dashboard" rather than a "game center." I realize this is may just be a label, but under your game center you have a "Game Setting" menu that I can't seem to find. Because of these differences (and maybe a few others) I am having trouble with the last couple of steps of your basic tutorial. I'm hoping you have some suggestions for me...maybe you know how to reconfigure the dashboard or where to find the game setting menu?? Again, I love your tutorials and I hope to be able to complete the others soon.

+ - !

(0)

Developer response from Abigayl

The settings are now a button at the top of the screen. In there you can find all of the extras that used to be in the "Game Center" or "Dashboard". I try to keep notes on these up-to-date, but Stencyl is constantly updating the versions (not that that's a bad thing... just makes my life harder :P).

avatar for del8332437_2612
del8332437_2612

Jul. 4, 2012

Under rating threshold (show) could you please explain to me or do a tutorial about saves and loading because i just dont get it and i am not sure where to be looking on the internet so i thought i would ask you

+ - !

(0)

Developer response from Abigayl

I do go over it in this tutorial, but in short, saving places the information from the game attributes (purple) into the temporary internet files in the player's computer, and then loading searches those temporary files to retrieve the information to set each of the game attributes to the saved values... does that make a little more sense?

avatar for Directorx5397
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?

avatar for korkoran7
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 :)

avatar for korkoran7
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.

avatar for Sanfdz
Sanfdz

Jun. 4, 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?

avatar for deBug121
deBug121

Jun. 1, 2012

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

+ - !

(0)

Developer response from Abigayl

Glad to help :)

avatar for Freeza1
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.

avatar for xman123321
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).

avatar for neponoN
neponoN

May. 5, 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).

avatar for zephidel
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.

avatar for Lordwh
Lordwh

Apr. 11, 2012

Under rating threshold (show) For some reason when I run it it dosent accept the line of code: actor.setVelocity(0, 0); Any help?

+ - !

(0)

Developer response from Abigayl

Without seeing the code itself, I cannot say what is going on.

avatar for Dauchim
Dauchim

Mar. 9, 2012

Under rating threshold (show) Its ok I fixed it, I putted the codes in when created insted of always. :S

+ - !

(0)

avatar for Dauchim
Dauchim

Mar. 9, 2012

Under rating threshold (show) When I press on the start button, it doesn't switch to the scene ''level'' can you help me?

+ - !

(0)

avatar for WingsofChaos
WingsofChaos

Mar. 7, 2012

Under rating threshold (show) Still learning in 2012 lol Without these tutorials I'd be sooo lost XD

+ - !

(0)

Developer response from Abigayl

Glad I could help you get found again :)

avatar for shadow999999
shadow999999

Mar. 3, 2012

Under rating threshold (show) when i play and the player hits the enemy the player dosen't die i put the collision coding in correct i don't get whats happening!please tell me what i might have done wrong im so confused rite now.

+ - !

(0)

Developer response from Abigayl

Two things: check your collision groups to make sure the player is hitting the enemy (can tell if you just pass right through enemies vs. bounce off). Also, check that you have attached the behaviors to the actors. If neither of those work, feel free to send me a pic of the coding and I'll see if I can find the issue.

avatar for wahid17
wahid17

Mar. 3, 2012

Under rating threshold (show) hey when i did the first tutorial and i tested it and when the character goes outta screen it dosent die! and the enemies dont spawn help

+ - !

(0)

Developer response from Abigayl

That's because I hadn't included the out-of-bounds coding yet. I had been searching for the best way to do it, but ultimately had to just use the messier methods I know in Tutorial 5 (so check there for how to do it).

avatar for mrgoji556
mrgoji556

Jan. 28, 2012

Under rating threshold (show) I cant get the text to show up in the game. Please help.

+ - !

(0)

Developer response from Abigayl

If you could send me a screenshot of your behavior(s), that would help me figure out what the issue is (there is a camera button in the lower right to quickly screenshot the entire coding).

avatar for predi
predi

Jan. 26, 2012

Under rating threshold (show) A Christian programmer writing great tutorials. Charm :-)

+ - !

(0)

Developer response from Abigayl

Uh... thanks ?

avatar for Bluetrick
Bluetrick

Jan. 23, 2012

Under rating threshold (show) Ok after almost 1 hour of trying i got it. I used do after 0.1 sec instead of do every 0.1 secs. Sorry and keep up the good work ;)

+ - !

(0)

Developer response from Abigayl

Aye, it's the simple things that often are the hardest to debug. Another common one is mistaking "group for this actor's colliding shape" with "group for colliding shape" or using the numerical addition instead of the text version (or vice-versa). Glad you got it solved :D

avatar for Bluetrick
Bluetrick

Jan. 23, 2012

Under rating threshold (show) Hey m8. First of all thank you for this amazing tutorial. I'm trying to follow your programs but my score isn't working as it should. If i start my score at 0 it goes to 1 and then stops there but my highscore is working good because if i change start score for 2 the highscore will go to 3 as the score stops at 3. What exactly am i doing wrong? Thank you

+ - !

(0)

avatar for eteal111
eteal111

Jan. 16, 2012

Under rating threshold (show) i understand how the torturial works, but my problem is when i want to make my own...

+ - !

(0)

Developer response from Abigayl

I don't understand... what is the problem?

avatar for StevenKabir
StevenKabir

Jan. 14, 2012

Under rating threshold (show) when I create a high score game attribute it is always set to 0 so at the colision palce, at the if place it is always false.

+ - !

(0)

Developer response from Abigayl

Umm... I don't really understand... what is the question/comment?

avatar for Mossonthehat
Mossonthehat

Jan. 12, 2012

Under rating threshold (show) Once again this is an amazing tutorial. I'm not entirely sure how to do the Kong Api bit yet, I'm sure I'll figure it out. The tutorial was once again clear, and helped a lot. I'm looking forward to the next three. 5*'s for clarity and interactivity.

+ - !

(0)

Developer response from Abigayl

Thanks for the 5. For the Kongregate API, to get it to show up in the leaderboards, when uploading and adding the statistics, you also need to check the "add to leaderboards" and put a name in for the leaderboards. I hope to update the tutorial sometime to include this.

avatar for ChazDragoon
ChazDragoon

Jan. 11, 2012

Under rating threshold (show) I see..so Attributes are "variables" like in Normal Coding (GM8, C++...) Though it's a heck of a lot easier to understand here. I might be able to figure out certain other things now that i've finished this tutorial. Thanks Abi..so far these are the best tutorials i've ever used for anything. :D

+ - !

(0)

Developer response from Abigayl

Yes, attributes are like the variables in other coding languages. Thanks for your kind words... I basically made these tutorials based on what I would have liked to have seen when developing my first game... in fact the game you end up making IS basically my first game (Last Square Standing).

avatar for Chapman2012
Chapman2012

Jan. 7, 2012

Under rating threshold (show) After completing this tutorial, when I tested my game out the main menu worked fine, but when I got to gameplay my character wouldn't move at all.

+ - !

(0)

Developer response from Abigayl

The best way for me to help is to see a screenshot. Somehow the coding probably got messed up. You can use imageshack.us or any other image site and send me the link, and I will try to figure out what is wrong.

avatar for xandramas
xandramas

Nov. 28, 2011

Under rating threshold (show)

+ - !

(-6)

Developer response from Abigayl

Xand, thank you for stating WHY you rated 1/5. It gives me a chance to explain and possibly change your mind. If I was clawing for money, you would not see this in my description: "As always, 100% of revenue goes straight to charity :)". If I made all of the tutorials into one game, it would be overwhelming for beginning programmers (and be too large to put up on Kongregate). I am trying to make them to be taken in about a half hour so that programmers can get some quick self-satisfaction of seeing something done and hopefully continue on. As for me liking 5/5's, who doesn't? In fact, I humbly request that now that I have explained what is going on that you update your rating to whatever you feel it is now worth.

avatar for LordPie99
LordPie99

Sep. 7, 2012

Under rating threshold (show) how do you choose the shift key in "if Shift is down" bar. it only lets me choose up,down,left,right,enter and action1 and action2?

+ - !

(-1)

avatar for blakopzpwn
blakopzpwn

Apr. 3, 2012

Under rating threshold (show) when i type speed and numbers for the attributes, there isnt a number box

+ - !

(-1)

Developer response from Abigayl

Screenshot? I'm not quite sure what you're asking...

avatar for Chapman2012
Chapman2012

Jan. 7, 2012

Under rating threshold (show) Attributes-Game attributes- But then there is no purple code box that says score on it. Explain please.

+ - !

(-1)

Developer response from Abigayl

You have to make game attributes. Click "create a new game attribute", make it a number attribute, and call it "Score" or whatever you want.

avatar for boxheadwinner
boxheadwinner

Mar. 16, 2012

Under rating threshold (show) I did everything but score doesn't show up... is it because I deactivated Kong?

+ - !

(-2)

avatar for toto506
toto506

Apr. 3, 2012

Under rating threshold (show)

+ - !

(-3)

  • add a comment