Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Demo space invaders  (Read 1986 times)

0 Members and 1 Guest are viewing this topic.

ciberspace

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 113
    • View Profile
    • Tele Juego
Demo space invaders
« on: November 16, 2012, 01:00:06 PM »

« Last Edit: November 19, 2012, 07:07:41 PM by ciberspace »
Logged

piere

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Posts: 301
  • Sorry for any bad english in my posts. Game on !
    • View Profile
Re: Demo space invaders
« Reply #1 on: November 16, 2012, 09:27:35 PM »

Hey pretty cool. How did you handle the collision detection?
Logged

ciberspace

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 113
    • View Profile
    • Tele Juego
Re: Demo space invaders
« Reply #2 on: November 19, 2012, 07:00:54 PM »

Code: WME Script
  1. fue.SkipTo(fx,fy);
  2.         if(((fy <= eneA + 20 && fy >= eneA - 20)&&(fx <= eneB + 20 && fx >= eneB - 20 ) )&& fuego==true)
  3.                 {
  4.                 //Game.Msg("colision 1");
  5.                 ene1= Scene.GetNode("ene1");
  6.                 ene1.Active=false;
  7.                 goA=true;
  8.                 }
« Last Edit: December 19, 2012, 10:42:02 AM by ciberspace »
Logged
 

Page created in 0.398 seconds with 22 queries.