Followers
Thursday, January 29, 2015
Flash Enemy Chase Code AS3
import flash.events.Event;
stage.addEventListener(Event.ENTER_FRAME, gameLoop);
stage.addChild(player);
player.x = stage.mouseX;
player.y = stage.mouseY;
function gameLoop(evt:Event)
{
player.x = stage.mouseX;
player.y = stage.mouseY;
if(enemy.x < player.x)
{
enemy.x +=1;
}
if(enemy.x > player.x)
{
enemy.x -=1;
}
if(enemy.y < player.y)
{
enemy.y +=1;
}
if(enemy.y > player.y)
{
enemy.y -=1;
}
}
stage.addEventListener(Event.ENTER_FRAME, gameLoop);
stage.addChild(player);
player.x = stage.mouseX;
player.y = stage.mouseY;
function gameLoop(evt:Event)
{
player.x = stage.mouseX;
player.y = stage.mouseY;
if(enemy.x < player.x)
{
enemy.x +=1;
}
if(enemy.x > player.x)
{
enemy.x -=1;
}
if(enemy.y < player.y)
{
enemy.y +=1;
}
if(enemy.y > player.y)
{
enemy.y -=1;
}
}
Wednesday, January 28, 2015
Flash AS3 Player Control with Arrow Keys Code
import flash.events.Event; import flash.events.KeyboardEvent; stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.addEventListener(KeyboardEvent.KEY_UP, onKeyReleased); addEventListener(Event.ENTER_FRAME, gameLoop); var playerSpeed = 2; player.x = 400; var isLeftKeyDown = false; var isRightKeyDown = false; var isUpKeyDown = false; var isDownKeyDown = false; function onKeyPressed(evt:KeyboardEvent) { if(evt.keyCode == Keyboard.LEFT) { isLeftKeyDown = true; } if(evt.keyCode == Keyboard.RIGHT) { isRightKeyDown = true; } if(evt.keyCode == Keyboard.UP) { isUpKeyDown = true; } if(evt.keyCode == Keyboard.DOWN) { isDownKeyDown = true; } } function onKeyReleased(evt:KeyboardEvent) { if(evt.keyCode == Keyboard.LEFT) { isLeftKeyDown = false; } if(evt.keyCode == Keyboard.RIGHT) { isRightKeyDown = false; } if(evt.keyCode == Keyboard.UP) { isUpKeyDown = false; } if(evt.keyCode == Keyboard.DOWN) { isDownKeyDown = false; } } function gameLoop(evt:Event) { if(isLeftKeyDown == true) { player.x-=playerSpeed; } if(isRightKeyDown == true) { player.x+=playerSpeed; } if(isUpKeyDown == true) { player.y-=playerSpeed; } if(isDownKeyDown == true) { player.y+=playerSpeed; } }
Wednesday, January 21, 2015
Digital Tutors.com
http://www.digitaltutors.com/
The largest creative and tech training library on the planet.
\
To join is $29 a month.
The largest creative and tech training library on the planet.
\
To join is $29 a month.
Character Post
This is a character that I drew in flash. I posted a .gif file. This character's name is Roxy, I named him after my cat Roxy. He doesn't look like a cat, but to me, he is one. In the game I make Roxy will be hard to control, just like a real cat.
While watching the videos I learned new techniques, such as, Saving color swatches, Pivot Points, Converting Lines to Fills, Deselect while holding Shift, ALT key to add anchor points on a line, Flip Horizontal, Snap to Objects, gap Size, Arrange - Send to Back, and Duplicate Symbol.
While watching the videos I learned new techniques, such as, Saving color swatches, Pivot Points, Converting Lines to Fills, Deselect while holding Shift, ALT key to add anchor points on a line, Flip Horizontal, Snap to Objects, gap Size, Arrange - Send to Back, and Duplicate Symbol.
Monday, January 19, 2015
khan academy.org
https://www.khanacademy.org
Learn how HTML and CSS work together to make websites.
Short videos and then an interactive lesson to assess learning where students can earn points, badges, and other virtual prizes to reward them and give a sense of accomplishment.
Learn how HTML and CSS work together to make websites.
Short videos and then an interactive lesson to assess learning where students can earn points, badges, and other virtual prizes to reward them and give a sense of accomplishment.
Friday, January 16, 2015
Flash: Designing Characters Pt 4 and 5
https://www.youtube.com/watch?v=iEN4cL8caxc
Today we will watch part 4 and 5 of designing characters in Flash.
Part for is really short, 7 mins.
A technique you will learn
Duplicate Symbol
Today we will watch part 4 and 5 of designing characters in Flash.
Part for is really short, 7 mins.
A technique you will learn
Duplicate Symbol
Thursday, January 15, 2015
Flash: Design Character Pt 3
https://www.youtube.com/watch?v=e5OBRX7ei6c
Techniques covered:
Snap To Objects (Looks like a magnet)
Gap Size
MODIFY - Arrange - Send to Back
Techniques covered:
Snap To Objects (Looks like a magnet)
Gap Size
MODIFY - Arrange - Send to Back
Tuesday, January 13, 2015
Flash: Design Character Pt 2
https://www.youtube.com/watch?v=XtYqYl3cnfo&src_vid=833CZ1OVSVU&feature=iv&annotation_id=annotation_966899
Techniques to Learn
Hold down ALT key on a line to add an anchor point
Deselect by holding down Shift
MODIFY > Tranform > Flip Horizontal
Techniques to Learn
Hold down ALT key on a line to add an anchor point
Deselect by holding down Shift
MODIFY > Tranform > Flip Horizontal
Flash: Designing Characters For Animation pt1
https://www.youtube.com/watch?v=833CZ1OVSVU
Some techniques you will learn:
Drawing with Line tool and modifying shapes
Organizing Flash files for Animation
Using Symbols
Pivot Points
Convert Lines to Fills
Saving Color Swatches
Some techniques you will learn:
Drawing with Line tool and modifying shapes
Organizing Flash files for Animation
Using Symbols
Pivot Points
Convert Lines to Fills
Saving Color Swatches
Wednesday, January 7, 2015
6 - Pay Phone Kiosks Can Do More!
Pay Phones
In the comments below, write 5 complete sentences about the article. The questions below are to help you think of what to write.
Do you think that we need more pay phones kiosks that could do more for us?
What else can you think of that the phone kiosks could do for the public?
What services are needed in public that these pay phone kiosks could do?
Imagine you are visiting a city you've never been to, walking around downtown wondering where everything is.
What if your neighborhood was destroyed in an earthquake.
Could a public info station help you? In what way?
Imagine you were homeless, living on the streets. What services could you benefit from?
KIOSK -
Imagine you were homeless, living on the streets. What services could you benefit from?
KIOSK -
- a small structure in a public area used for providing information or displaying advertisements, often incorporating an interactive display screen or screens.
5 - Pay Phone Kiosks Could Do So Much More
Pay Phones
In the comments below, write 5 complete sentences about the article. The questions below are to help you think of what to write.
Do you think that we need more pay phones kiosks that could do more for us?
What else can you think of that the phone kiosks could do for the public?
What services are needed in public that these pay phone kiosks could do?
Imagine you are visiting a city you've never been to, walking around downtown wondering where everything is.
What if your neighborhood was destroyed in an earthquake.
Could a public info station help you? In what way? Imagine you were homeless, living on the streets. What services could you benefit from?
KIOSK -
KIOSK -
- a small structure in a public area used for providing information or displaying advertisements, often incorporating an interactive display screen or screens.
4 - Pay Phone Kiosks Could Do So Much More
Pay Phones
In the comments below, write 5 complete sentences about the article.
Do you think that we need more pay phones kiosks that could do more for us?
What else can you think of that the phone kiosks could do for the public?
What services are needed in public that these pay phone kiosks could do?
Imagine you are visiting a city you've never been to, walking around downtown wondering where everything is.
What if your neighborhood was destroyed in an earthquake.
Could a public info station help you? In what way? Imagine you were homeless, living on the streets. What services could you benefit from?
KIOSK -
KIOSK -
- a small structure in a public area used for providing information or displaying advertisements, often incorporating an interactive display screen or screens.
3 - Pay Phones Can Do So Much More!
Pay Phones
2 - Pay Phones
Pay Phones
http://www.cnn.com/2013/03/08/tech/pay-phones-new-york/index.html
Read the short article at the link above. In the comments below, write 5 complete sentences about the article. Do you think that we need more pay phones kiosks that could do more for us? What else can you think of that the phone kiosks could do for the public? What services are needed in public that these pay phone kiosks could do?
Read the short article at the link above. In the comments below, write 5 complete sentences about the article. Do you think that we need more pay phones kiosks that could do more for us? What else can you think of that the phone kiosks could do for the public? What services are needed in public that these pay phone kiosks could do?
Pay Phones
http://www.cnn.com/2013/03/08/tech/pay-phones-new-york/index.html
Read the short article at the link above. In the comments below, write 5 complete sentences about the article. Do you think that we need more pay phones kiosks that could do more for us? What else can you think of that the phone kiosks could do for the public? What services are needed in public that these pay phone kiosks could do?
Read the short article at the link above. In the comments below, write 5 complete sentences about the article. Do you think that we need more pay phones kiosks that could do more for us? What else can you think of that the phone kiosks could do for the public? What services are needed in public that these pay phone kiosks could do?
Tuesday, January 6, 2015
Subscribe to:
Posts (Atom)
