Saturday, April 6, 2013

Website

This is where you find the Website and the link to the game https://sites.google.com/site/arrendercom/


Part 6 Collision Detection Part 2

                   Collision Detection part 2


// colision detection

I have a Loin For my second Detection Which when you touch it.The Head comes off why no idea it is just to make something happen I also have a text field going as well since i explained the code in the last part its all the same thing


       



Sunday, March 24, 2013

Part 5 Collision Detection

Collision  detection. We have to do  2  detections so for him walking I have a wall where is detects on the left side so to do that. You make a wall a symbol and In ActionScript, there are two methods of the DisplayObject class that provide collision detection capabilities. These are:
hitTestObject() - checks whether the bounding boxes of any objects intersect.
hitTestPoint() - checks whether a certain x-y coordinate intersects with an object

I Used hitTestObject object  which is the simplest of the two.

example code
if(wall.hitTestObject(man))





This is my wall I know it  doesn't  look like much of a wall but it will also I have coded in a   text-field. So when you Hit it will trace out hit and on the stage. I  haven't  figured out how to stop him going through the wall yet.



Saturday, March 16, 2013

Moving Background part 4

                        Moving the background
To parralex scroll the background. Which will give you depth in the game. I did this by using a if  statement in a function then all you do is what ever the instance names of them you would say something like this 



example code

if (man.x <= stage.stageWidth * 0.25)




The man is the name of the  character the dot is like  access  to the next part x is  the x  access. Less than of the stage. =  Assigns the value stage.stageWidth and the multiply number is where you want the action to work on the stage. Then the symbols of your background is in the x axis and then + is left and - is right and then just put in the speed of them. 

Saturday, March 9, 2013

Moving The charecter

                  Moving Charecter





We had to move the  character  left and Right And jump. I used Code for this. To do this i used .addEventListener and a
function. Then all you had to was figure out the key Numbers on the Keyboard when you had that done all you had to do was put it in a if statement.




Background

                           Part 2  showing off my background

This is my background with the guy in it which i made in flash this needs to have a  parallax  scrolling using code and moving the  character left and right also he needs to jump.  They are all on  separate layers and  turned  into symbols. Then you can make a actions layer and put your main code into this.





This is the whole background with man in it.














Part 1 Character

                    Action Script Project 1

So we had to make a  Character  and i came up with two designs This was my first one. Which i made in Flash I made him walk With Key Frames and  a lot  of  patience.  We Need a  character to be  able to walk and jump and move in our game which we are making.
My man


This was my other  Character which i made also in flash but I used the other guy because he sited my background better.