Comments for Stencyl 2.0 Advanced Tutorial: Lagless Actors

avatar for Rahulmartin
Rahulmartin

Mar. 9, 2013

Under rating threshold (show) Nice tutorial abigayl , this is every essential for everyone. thanks for sharing this.

+ - !

(0)

Developer response from Abigayl

You're welcome :)

avatar for xandramas
xandramas

Feb. 26, 2013

Under rating threshold (show) another question. I want to make the rain create at the top part of a scene, and fall at the bottom of the screen but not create and follow with the actors screen. Basically I have a tall scene that I want the rain to fall to the bottom of the initial screen and allow the player to drop further down and the rain effect not follow the player around. How would I modify this?

+ - !

(0)

Developer response from Abigayl

Just set a Y value such that when the lagless actors are below it, the rain drops kill themselves.

avatar for xandramas
xandramas

Feb. 26, 2013

Under rating threshold (show) thanks for the idea of just creating an actor at the location of the player that'll work just fine for what I am trying to attempt. I think another thing I can do is just do a normal draw code for just a few actors that fall from the sky and hit the player. This is kind of what I am attempting to do with your tutorial http://www.stencyl.com/game/play/17434

+ - !

(0)

Developer response from Abigayl

Most of the time, "advanced" coding just comes down to using different techniques together ;). Good luck!

avatar for xandramas
xandramas

Feb. 26, 2013

Under rating threshold (show) Another question, do I just add another otherwise if to the code with a new actor if I want other actors to collide with the falling ones and then just switch out player with the other actors?

+ - !

(0)

Developer response from Abigayl

Can you do it? Yes. However, please note that this methodology is a O(2n) size, meaning that for every single additional actor you compare it to, it will double the size (and the lag). I tried making a game once that used this method for bullets shooting at enemies and found the lag to be just as bad as normal actors when there were even like 5-10 enemies on screen.

avatar for xandramas
xandramas

Feb. 25, 2013

Under rating threshold (show) ive got a question, is there a way to change the animation of the collided actor rather than destroying them? I tried to change the animation and it changed the animation for every actor falling.

+ - !

(0)

Developer response from Abigayl

You mean the lagless actors? Not really. I got it to work once, but then I learned that changing animations is a rather laggy code. If you want to change to an explosion, etc. (something that will be destroyed quickly), you could create an actual actor where the lagless actor was right before it dies.

avatar for xandramas
xandramas

Feb. 25, 2013

Under rating threshold (show) nevermind, forgot to attach the behavior to the actor

+ - !

(0)

Developer response from Abigayl

Aye, that's a common error. ;)

avatar for xandramas
xandramas

Feb. 25, 2013

Under rating threshold (show) ive done everything it says but the custom block wont create the actor

+ - !

(0)

avatar for NineXxX
NineXxX

Feb. 9, 2013

Under rating threshold (show) is Stencyl free? 5/5 for good explanatory, details, and 1 for your cute anime avatar tellng me everything :3

+ - !

(0)

Developer response from Abigayl

Yes it is: stencyl.com (well, it's free to use and to publish games that have a Stencyl logo on them. To get rid of the logo or to publish to non-flash, you will need a yearly license... but all of the options are free to use (it's just to publish to those areas that costs money), so you could make the game first, then see if someone wants to sponsor it, and at that time, the sponsorship should more than cover any cost of the license (or you can leave on the Stencyl logo and pocket all of the profits :P). It's a great business model.

avatar for 0_Tuo_0
0_Tuo_0

Nov. 9, 2012

Under rating threshold (show) Very helpful, even when not doing it for the lagless method. I am constantly returning to here for quick reference of the square collision calculations for other purposes too!

+ - !

(2)

Developer response from Abigayl

Thanks. Didn't think of the multi-purpose when creating it.

avatar for zapleaf
zapleaf

Oct. 24, 2012

Under rating threshold (show) I am able to implement your lagless actors into my game, however I can not grasp the concept of what it is doing so I have a few questions I hope you can answer. Is the drawn Sprite still holding onto its own variables? (IE. Health.) Is there anyway I can detect any of the sprites outside of this function like can another function see them? If you want me to explain better I would be very happy to receive your help in a message. Thanks.

+ - !

(0)

Developer response from Abigayl

If you try to use attributes for the individual instances of the actor, you will need to use an array for that too (add it into the custom block); any non-array attributes are just for the hidden base actor. Other actors can interact with them through more global blocks or by using global arrays instead of local ones. Does that make sense?

avatar for silux
silux

Jul. 30, 2012

Under rating threshold (show) It took me 20 minutes to reproduce it and it's really worth it!Now i can put more special effects in my games!

+ - !

(1)

Developer response from Abigayl

Glad to help :)

avatar for del8066640_42914
del8066640_42914

Jun. 4, 2012

Under rating threshold (show)

+ - !

(-8)

avatar for isk8bits
isk8bits

Jun. 2, 2012

Under rating threshold (show) great tutorial definitely the most complicated of all your tutorials so far. 5/5 like all your other tutorials

+ - !

(0)

Developer response from Abigayl

Aye, that's why it's "Advanced". I tried to keep it simple, but I'm basically throwing out the entire system and rebuilding it. Thanks for the 5! :)

avatar for vhor
vhor

May. 15, 2012

Under rating threshold (show) I love your tutorials! got me back to making a flash game. Could you pretty please make a tutorial on Player Health? i really get insane trying to get it to work. ( I can't figure out to use the intergrated "health manager" and am just not able to engineer my own version…) thank you very much, sir!

+ - !

(1)

Developer response from Abigayl

That is in included in tutorial 4 :)

avatar for Gustav165
Gustav165

May. 12, 2012

Under rating threshold (show) I found this tutorial a lot harder to understand then your other ones. I have no real idea why but it was just harder.

+ - !

(0)

Developer response from Abigayl

The reason is likely since this is an advanced tutorial. I'm basically throwing out the system that the actors are based on and remaking it from scratch. That's heavier than any of the other tutorials I've made.

avatar for bisser777
bisser777

May. 8, 2012

Under rating threshold (show) Really nice.

+ - !

(0)

Developer response from Abigayl

Thanks :)

avatar for supershadow1633
supershadow1633

Apr. 24, 2012

Under rating threshold (show) wow abi, thats really neat,probelm is i dont understand anything... oh well i might come here if i need help is stencyl.

+ - !

(0)

Developer response from Abigayl

Well, if you have specific questions, let me know and I'll try to clarify for you :)

avatar for qwertyuiopazs
qwertyuiopazs

Apr. 10, 2012

Under rating threshold (show) How do you change a sprites costume?

+ - !

(0)

Developer response from Abigayl

You can go into the actor and change the image that you used.

avatar for airman4
airman4

Apr. 4, 2012

Under rating threshold (show) really nice!! i 'll try to do this for my game. thanks a lot!

+ - !

(1)

Developer response from Abigayl

You're welcome :)

avatar for Abigayl
Abigayl

Apr. 4, 2012

Under rating threshold (show) Just wanted to say thank you to everyone for your votes. At the time of writing this, the tutorial is in third place for both weekly & monthly. I appreciate all of your support :)

+ - !

(6)

avatar for shadow999999
shadow999999

Apr. 2, 2012

Under rating threshold (show) needs a part select so if you missed something you could go straight back to it and talk about bullet hell this is even more extreme then the game you created! like always great work.

+ - !

(1)

Developer response from Abigayl

Part select? Do you mean a page select? I thought about trying to implement it, but I just don't know how I could...

avatar for solleader
solleader

Apr. 1, 2012

Under rating threshold (show) thanks abigail for this new tutorial, the new effect from stancyl 2.0 are very amazing

+ - !

(0)

Developer response from Abigayl

FYI, you don't need to do this in Stencyl 2.0. I've done it in Stencyl 1.4 for Mr. Goldfish and likely works even in my 1.1 ;)

avatar for snackman76
snackman76

Apr. 1, 2012

Under rating threshold (show)

+ - !

(-5)

avatar for lSWATLLAMA
lSWATLLAMA

Apr. 1, 2012

Under rating threshold (show) Good work, Abi. I can't remember though - is this the one in which Sunflower was coding in AS3 using stencyl and you transferred it to blocks, or is it something else?

+ - !

(-1)

Developer response from Abigayl

Nope, Sunflower did this in Stencyl too. I just simplified some of the parts and added my own tweaks.

avatar for WonderSunflower
WonderSunflower

Apr. 1, 2012

Under rating threshold (show) Oh, just noticed one thing, though: in circular collision, you can calculate "[(half-width + half-height)/2 + (player half-width + player half-height)/2] ^ 2" only once, in "when created" or shortly after that and assign it to some attribute "Distance", rather than counting it during every collision check; it can save about 1/3 of squares calculation, it seems. ^^'

+ - !

(2)

Developer response from Abigayl

I noticed that too... was trying to keep things simple, but it's a good idea to add it anyways. Will see about updating it. EDIT: It's now updated to include this extra piece of coding :)

avatar for WonderSunflower
WonderSunflower

Apr. 1, 2012

Under rating threshold (show) I'm, like, totally collecting these spikes. Squee! ^_^ (too bad I totally forgot how to switch to previous page of tutorial >.<)

+ - !

(6)

Developer response from Abigayl

It's hold shift + click/space/enter, but I'm glad you're having fun ;)

avatar for Gogosboy
Gogosboy

Apr. 1, 2012

Under rating threshold (show) @Abigayl: Could you mention this in your next tutorial?: In "When created" of the behaviour of the very first scene of your game ONLY, drag in "Hide mouse cursor", then drag in a code block, and type this into it: Mouse.show(); This will replace the stupid flixel cursor with the normal one.

+ - !

(5)

Developer response from Abigayl

Good idea, will have to think about what tutorial that will best fit in.

avatar for Gogosboy
Gogosboy

Apr. 1, 2012

Under rating threshold (show) Nice work once again Abi :D.

+ - !

(1)

Developer response from Abigayl

Thanks :)

avatar for jacob24super
jacob24super

Apr. 1, 2012

Under rating threshold (show) Love these tutorials :)

+ - !

(1)

Developer response from Abigayl

:D

avatar for kingorkami
kingorkami

Apr. 1, 2012

Under rating threshold (show) Thanks Abigayl! You and Sunflower really taught me a lot. :p Still, excellent tutorial and a very interesting take on collision. 5/5ed and faved like always. :D

+ - !

(9)

Developer response from Abigayl

Do you have another idea for collisions as well (besides the normal method)? If so, would love to hear it, always looking for new techniques. Thanks for the 5 and fave :)

avatar for alexolsenpang
alexolsenpang

Apr. 1, 2012

Under rating threshold (show) Good work :)

+ - !

(0)

Developer response from Abigayl

Thanks, hope it helped out :)

  • add a comment
  • « First
  • 1 - 31
  • Last »