adriweb
Editor
LV9 Veteran (Next: 1337)
Offline
Gender: 
Last Login: Today at 12:02:44
Date Registered: 13 April, 2011, 18:42:59
Location: South of France
Posts: 1197
Total Post Ratings: +185
|
 |
« Reply #15 on: 27 December, 2011, 21:06:01 » |
0
|
Then when the bullet has hit, you can erase the data while keeping the object, so then you can reuse it later.
Just delete the object since you have its ID and create another 
|
|
|
|
|
Logged
|
|
|
|
3rik
LV3 Member (Next: 100)
 
Offline
Gender: 
Last Login: 02 April, 2013, 22:45:02
Date Registered: 09 August, 2011, 04:04:54
Location: Right over there.
Posts: 92
Total Post Ratings: +8
|
 |
« Reply #16 on: 28 December, 2011, 07:52:07 » |
0
|
Hello everyone! I missed a lot of posts.
I was using a system much like the one adriweb was proposing. I have classes with all the necessary data and methods for each object type. Then when I create a new instance of the class, I store it to a table. When each missile moves, I check to see if it is touching any enemy object. If it is, a method is called which in this case, deletes both the enemy and the missile. In the future, it will probably trigger an explosion animation too.
The scrolling will be skippable. I just wanted to emphasize that this was a demo and not the final product yet.
I hope every one had a happy holiday season this year!
|
|
|
|
« Last Edit: 29 December, 2011, 21:45:38 by 3rik »
|
Logged
|
|
|
|
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
Offline
Gender: 
Last Login: Today at 18:03:25
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50227
Total Post Ratings: +2615
|
 |
« Reply #17 on: 31 December, 2011, 01:13:19 » |
0
|
Welcome back 3rik  Good luck on this game.
|
|
|
|
|
Logged
|
|
|
|
njaddison
LV4 Regular (Next: 200)
  
Offline
Gender: 
Last Login: 15 May, 2013, 02:46:53
Date Registered: 08 November, 2011, 03:56:20
Location: South Carolina(USA)
Posts: 153
Topic starter
Total Post Ratings: -5
|
 |
« Reply #18 on: 04 January, 2012, 00:40:03 » |
0
|
3rik, is this how I add the userbar? 
|
|
|
|
|
Logged
|
|
|
|
|
Nick
|
 |
« Reply #19 on: 04 January, 2012, 00:42:16 » |
0
|
lol better place it in your signature, otherwise you'll have to copy it everywhere xp just go to profile > Forum Profile Information, Look and Layout and paste that link you pasted here in the signature box
|
|
|
|
« Last Edit: 04 January, 2012, 00:42:36 by Nick »
|
Logged
|
|
|
|
|