logo
What's New
What's New
  Popular
Popular
  Top Rated
Top Rated
  Search
Search


Search :  

How to Add Link |   Modify Link   |   Login |     Register  |  Getting Rated |  Link to Us |  Feedback Us


Sponsors
FlashAdvisor.com
Web Directory
phpld Hacks
Your Site Link




Categories
    3DS MAX
    ASP
    C And C++
    ColdFusion
    Database
    Dreamweaver
    Flash
    HTML
    Java
    JavaScript
    Linux
    Maya
    MS Excel
    MS PowerPoint
    MS Word
    Paint Shop Pro
    Perl and CGI
    Photoshop
    PHP
    Premiere
    Python
    Visual Basic
    Web Hosting
    XML
 

 

Predicting Collisions
  

Home  » Flash » Actionscripting  

For many games, simply detecting a collision when an object hits another object is enough. That sort of collision, covered in an earlier tutorial, is great for games such as pool or mini-golf where collisions occur only when two objects physically touch each other. But, you also have a different type of of collision. Many games today feature opponents who dodge and weave as you try to hit them. Games such as Zelda have opponents who slide and weave when you fire a slow-moving projectile such as a bow from your arrow, etc. You need some way of having your opponents be able to predict collisions from your attacks. Being able to predict a collision and react accordingly adds some primitive level of intelligence to your targets. I will explain one simple way of predicting collisions that Flash can computationally handle:

Hits: 71
Rate:   0.0(out of 5)  
Vote : 0   
Submit Date  : 2007-02-16
Submit By  : kirupa
View Tutorial Predicting Collisions
 Add Review
 Report Error
Rating Graph

0.0%
0.0%
0.0%
0.0%
0.0%
 1  2  3  4  5 
Rate This :
More Tutorials by this user

Complex Button RollOver/RollOut Effects
 Complex Button RollOver/RollOut Effects
Flash-Based Email Form Using PHP
 Flash-Based Email Form Using PHP
Reusable Preloader Using MovieClipLoader
 Reusable Preloader Using MovieClipLoader
Tween AS Preloader
 Tween AS Preloader
Changing Colors Using ActionScript
 Changing Colors Using ActionScript
PhotoShop Scripting
 PhotoShop Scripting
Passing Variables to Flash
 Passing Variables to Flash
News Ticker
 News Ticker
Shiny Orbs
 Shiny Orbs
Trend Art Style
 Trend Art Style
  
Home | Sitemap | Feedback | Advertise with us
Best viewed in 800x600 resolution with Internet Explorer.
Site Developed and Hosted by EthicSolutions

Flash Tutorials    TemplateAdvisor.com    WebMastersHome.com

    Reseller Hosting    Reseller Hosting Linux