game programming

  • xperyens
  • Born
  • Born
  • xperyens
  • Posts: 2

Post 3+ Months Ago

i need to make a game in wich i have to use collision objects. Well, i'm using a target object with the name "target". This object is stationary.
The other object wich is moving (it is a mouse action: i make a quick move of the mouse and then the object named "bullet" move all by hymself towards the target) and the object name is "bullet". In the "target" object i'm using the code

onClipEvent(enterFrame)
{
if ((this._x == (getProperty("/bullet", _x))) && (this._y == (getProperty("/bullet", _y))))
{

. After the objects collide (if they do) i need to send a var to the "score" -dynamic text- and increase it or decrease it.
I need to know the hole code and because i'm a beginner i can really use somebody's help. thank you for your support.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Natal
  • Beginner
  • Beginner
  • Natal
  • Posts: 49
  • Loc: Transylvania

Post 3+ Months Ago

This is a good tutorial about flash game programming, including collisions:

http://www.gotoandplay.it/_articles/2004/02/tonypa_p07.php

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 11 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.