Under rating threshold (hideshow)
Yes. It was really odd. It just didn't work when the same code was in a behavior, and only worked when it was in the actor's event tab. :s
Under rating threshold (hideshow)
Might be a double post, but it doesn't seem to have posted my first comment.
Somehow when I include the code as a behavior, my actor won't shoot anything, but works when I include the code in the actor's event thing.
Did you remember to attach the behavior to the actor? That is the issue with behaviors: it's easy to forget to "attach to actor" (the big green button in the upper-right).
In the Actor -> Position palette, you can find the "direction self is facing" code. Then, you can use that as the angle for the bullets (please note, you may have to add/subtract 90 from it to make it work correctly, depending on how you setup your actors).
Under rating threshold (hideshow)
I'll probably never really make a video game but knowing alot about how they are made really shows me how much people work on them, which helps me respect even weaker games. I CANNOT believe it is so complicated, but if you practice, you can even make a totorial on making a game, huh? :)
Aye, for the most part, you can estimate at least one hour of programming per MINUTE of gameplay (varies a lot depending on if you are making a mini-game or a full-fledged game).
Under rating threshold (hideshow)
I actually figured out what i was doing wrong after i posted that comment. I have one problem (sadly) the bullets wont disappear when they hit an actor and the actor does not die by the bullet. I don't know what i am doing wrong. please Help Again.
Under rating threshold (hideshow)
I followed your tutorial but then realized you were shooting from a previously made actor. I want to know how to shoot directly where your mouse is (out of nowhere). Please help.
If you want to shoot directly at the mouse, no movement (like in a shooting game), just use the "x of mouse" and "y of mouse" coding alone, without any subtraction. If you want to shoot things directly, then just use "if mouse was released on self" coding in the actor's code itself. Does that make sense?
In your Game Center, check your collision groups and make sure your bullets aren't colliding with your player, which could cause them to bounce off, making them go in only one direction.
Under rating threshold (hideshow)
hi abigayl, thanks for the tuts! they were great, easy to follow and entertaining. here is my version, because i use a laptop i opted for a space button gun, with a spray of +-10px. i also made enemys face the direction they are flying which i though made it look so much better. i plan on creating stages and more weapons via powerups. thanks again
http://www.kongregate.com/games/screaminpoet/stencyl-tutorial-shooter
Under rating threshold (hideshow)
Hm..strange...after finishing this tutorial i can't even test my game..it just goes through the motions then...dead. Nothing. I restarted Stencyl but still nothing...hmmm
Under rating threshold (hideshow)
I followed the tutorial but when i click in my game i just start to turn around and the bullets just stay at the player Do you know how this is possible?
Love your tutorials!
Like the idea how you make them
Are you sure you attached the bullet movement behavior to the bullets? If you didn't, they will just stay at your player. If you did, then please screenshot it and send me a link. My livestream (livestream.com/poweredbyflowers) is the best way to reach me for one-on-one help.
Under rating threshold (hideshow)
Really helpful tutorials, maybe I'll finally get off my lazy ass and start making a game myself. One thing: the information on how to switch pages in the tutorial is on the 2nd page. Not very practical. I know I can always scroll down a bit for the controls, but I think it's my OCD talking now :P
I don't know how to put the controls on the first page without destroying the welcome message... perhaps instead of the Stencyl logo... would need some feedback if that sounds good though. I tried to use the simplest advance controls, ones I would hit personally.
Under rating threshold (hideshow)
Maybe in the future, you can explain how to make power ups and bonuses. (ex. one that gives you more damage for a few seconds and one that gives you a few hundred points)
Under rating threshold (hideshow)
Guys, just learn how to code in a REAL language, coding a game like this in a real language would take far less more time than it would in Stencyl.
It's not all about speed (and Stencyl is fast) but rather easing into programming. As I have said many times before, if you know how to code in AS3 or another language, you should probably stick to that. Stencyl is a good stepping stone though. You don't go straight to Calculus without first learning about functions ;)
Under rating threshold (hideshow)
Yes the collision groups are okay. The bullet hits what i want it to hit but it does not seem to follow the "Kill Self" command.
Under rating threshold (hideshow)
Thanks! Now I can complete my game. I modified the healthbar script so that when the enemy's health is low, the healthbar changes color. Thanks again for the help!
Are you sure you used a "do every" instead of "do after" code? If you want, upload the game to Forge and send me a PM with its name and I'll take a look at it to see what's wrong.
If you want, take a screenshot of the code and send me the link (or just upload the game to StencylForge and send me the title). You likely have some correct coding in the wrong spot, such as putting the bullet creation in a scene behavior instead of the player behavior.
Under rating threshold (hideshow)
ah i see..so, for the sake of example: things like character/enemy attributes (hp, strength, etc.) are better used to local attributes while things like..say.. Day/Night time should be a global?