Under rating threshold (hideshow)
I had to tweak the collision part (the colliding shape detector) a bit to make it work due to updates. It works, but hope it will not cause problems when I finish tutorial 4.
There are many ways, including the collision tab (I often create a new box collision and then cancel as it will show the actual size if I've adjusted the collision box currently on it).
If your scene is bigger than your screen, you'll have to add the x/y of the camera to the x/y of the mouse for it work properly. If you post a screenshot of the coding (or upload the game to StencylForge and make it public), I can try to look at it to see what's wrong.
Under rating threshold (hideshow)
Hello Sirmoo,
For whatever reason, I can't seem to create a response, but yes you can. In the Actor palette, there is a "face direction" code and you can use the same coding for the shooting for that direction (you will likely have to add or subtract 90 though to make it work).
Under rating threshold (hideshow)
Hey there! Is there any way i can have my player face the mouse constantly, like turn and face the mouse no mater where it is on the screen? I keep trying but still have no luck :(
Can you describe the crash? Is there an error that pops up? If you want, upload the file to StencylForge (don't forget to make it public) and let me know the name, and I'll take a look at it for you. There's not much I can do without seeing the file itself.
Perhaps upload your game to StencylForge, make it public, and tell me the name of it. I'm still not understanding the issue, so seeing it directly might be better.
Under rating threshold (hideshow)
another question: if i shoot i cant shoot in all image (just in left and up the right and down is only a half of distance
Under rating threshold (hideshow)
hey! i watch all the tut, did all right but when the bullet colide with the enemy just push them away, don't kill em.
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!
Under rating threshold (hideshow)
I followed this tutorial exactly and I have a 75 tile long screen (each tile is 32x32 and the character is 30x90) and when my character passes oh say about the 1/2 way mark across the level, the bullets only shoot in the left direction! The ip and down is fine, to a point, where they wont pass about 45 degrees in either direction. Once I pass over the halfway mark again, the bullets act correctly. Help!
When making a scene bigger than one screen, you need to add to the player: "always move camera to self" and add the x/y of the camera to the x/y of the mouse in the atan code.
Under rating threshold (hideshow)
I went from understanding jack-butt of Flash Game making to...well, understanding the bare basisc of Flash Game making. Thanks!
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).
Under rating threshold (hideshow)
What to do when your own bullets hits your own actor? Cause I cant get the bullets in front of my actor so he can shoot the enemies. My actor hits himself and then the bullet is gone
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)
OMG I really need your help to make my game.What ever I do it sometimes work like I cant get score I cant find out how to make the enemy's move left to right by them self because I am trying to make a maze game so I cant have the enemy's spawning all over the place.Please help me I would love you if you did help me. <3
Under rating threshold (hideshow)
I have to admit that this tutorial is best if you need help in starting "programming" in stencyl, very usefull and simple. tuvm.
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.
Are you sure you attached the behaviors? 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.
My graphics are generally pretty bad too, unless I spend a LOT of time on them. That come down more to networking. There are forums on Stencyl.com to find artists/musicians to work with or DeviantArt is another good choice.
Under rating threshold (hideshow)
Oh, I accidently did create bullet at (x:x of self, y: x of self.) by the way the bullets weren't going where i clicked, they were going at what seemed to me as random places, and I just happened to click on two in a row and assumed 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)
I would love it if at the end you showed a picture of all the coding you changed so I could fix my mistakes without having to go through the tutorial at the end.
There are so many areas that can change that it's hard to do a screenshot of all of the updates... would require a couple of slides just to show all of the code. I tried to do something similar by having recaps, but I know it's not quite the same thing.
Under rating threshold (hideshow)
I followed your tutorial again and saw i used "Group for this actor's colliding shape" instead of "group for colliding shape". Now the bullets work properly. But may i ask you what is the difference between those 2.
P.S. Thanks for your help but i may keep asking questions later on but right now I'm doing good.
The "group for this actor's colliding shape" is a very rarely used code, but it is indispensable to some programmers. It is designed for those who use multiple collision shapes on a single actor, such as animation that includes a sword. Those animations can have multiple different groups attached, and that code allows programmers to figure out which one was hit. For the majority who use one collision shape per actor, it's not needed.
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)
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.