Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: [request] grrrr how do i destroy objects using code!  (Read 1297 times)

0 Members and 1 Guest are viewing this topic.

ttimebomb

[request] grrrr how do i destroy objects using c...
« on: October 01, 2006, 04:24:09 am »
title. its GM6. thanks a lot
Logged
Re: [request] grrrr how do i destroy objects usi...
« Reply #1 on: October 01, 2006, 04:38:50 am »
  • :D
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 151
with (objectname) {instance_destroy();}
Logged
  • Knighty Games
Re: [request] grrrr how do i destroy objects usi...
« Reply #2 on: October 01, 2006, 04:53:37 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1635
Keep in mind that that destroys all objects with that object index. If you want to destroy only one, keep track of it's ID and use that instead.
Logged

ttimebomb

Re: [request] grrrr how do i destroy objects usi...
« Reply #3 on: October 01, 2006, 05:11:02 am »
it didnt work...
could you give an example
EDIT:nvm
« Last Edit: October 01, 2006, 05:19:33 am by ttimebomb »
Logged
Re: [request] grrrr how do i destroy objects usi...
« Reply #4 on: October 01, 2006, 07:42:12 am »
  • Am i here or am i not?...
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 238
In the object: instance_destroy()
Logged
Re: [request] grrrr how do i destroy objects usi...
« Reply #5 on: October 01, 2006, 09:03:16 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 221
I thought it was objectname.instance_destroy() ?
Logged
Re: [request] grrrr how do i destroy objects usi...
« Reply #6 on: October 04, 2006, 04:12:26 pm »
  • Am i here or am i not?...
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 238
I thought it was objectname.instance_destroy() ?



It is but i sed put in the object,if you put it in the object the object will be destroyed!!!!!!!     :jellytime:
Logged
Re: [request] grrrr how do i destroy objects usi...
« Reply #7 on: October 05, 2006, 02:16:48 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1635
No, it ISN'T objectname.instance_destroy(). Don't listen to anyone who says it is.

instance_destroy() by itself affects the object in which it is called, destroying that object. If you want to destroy another object, use WITH to access it.

with(object_you_want_to_destroy) {instance_destroy();}
Logged
Re: [request] grrrr how do i destroy objects usi...
« Reply #8 on: October 05, 2006, 04:39:52 pm »
  • Am i here or am i not?...
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 238
you must be right!   :dance:
Logged
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.041 seconds with 56 queries.