Physion

  • Increase font size
  • Default font size
  • Decrease font size
Welcome, Guest
Please Login or Register.    Lost Password?

onStart/onStop will stay forever
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: onStart/onStop will stay forever
#131
onStart/onStop will stay forever 2 Years, 11 Months ago  
How to reproduce:
Start new Scene, create obj "item4"

in Console do:
Code:

item4.onStart = function() { item4.Text = "STARTED!"; }
world.started.connect(item4.onStart)



Start scene, Text will appear.

Remove item4, load an other scene or start a new scene again.

create obj "item4"
Start scene, and Text will still appear.

Only closing Physion removes the function-call.

(doing "world.started.disconnect(item4.onStart)" before closing the begin-scene will remove the call)

P.S: Imho it would be best if the onStart/onStop could be set in the properties too.
Lynxx
Java/C#-Developer
Gold Boarder
Posts: 198
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Lynxx Homepage Location: Germany Birthday: 03/20
Infinity is vast, especially near end.
bye, Lynxx
The administrator has disabled public write access.
 
#139
Re: onStart/onStop will stay forever 2 Years, 11 Months ago  
That's interesting... I'll take a look

P.S: Imho it would be best if the onStart/onStop could be set in the properties too.Yes this will be done in Version 1.01
Dimitris
Admin
Posts: 212
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#296
Re: onStart/onStop will stay forever 2 Years, 11 Months ago  
Hey Lynxx,

Could you please check if this bug you spotted (onStart/onStop will stay forever) still persists in version 1.01?

Thanks
Dimitris
Admin
Posts: 212
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#300
Re: onStart/onStop will stay forever 2 Years, 11 Months ago  
Indeed the above sample still works in V1.01 !
Lynxx
Java/C#-Developer
Gold Boarder
Posts: 198
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Lynxx Homepage Location: Germany Birthday: 03/20
Infinity is vast, especially near end.
bye, Lynxx
The administrator has disabled public write access.
 
#542
Re: onStart/onStop will stay forever 2 Years, 8 Months ago  
Old post, but just found something like this, too!! Was driving me nuts!
Had some coding in an 'OnUpdate' event, which was working. I changed some things
in the coding, which (at the time unknown to me), was incorrect, so it would not have
worked then. But the OLD (last correct WORKING script for that event was still running
in the background!? Could only see that my new coding was not working, by saving,
closing &re-starting Physion, & re-loading. I would have thought that, working or not,
when clicking 'OK' in the event script-editor would at least remove the old coding.
Have a good weekend! Sunny here, in South Australia.
Glenn555
Expert Boarder
Posts: 80
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Adelaide, South Australia Birthday: 05/01
1x1 square diag = root-2. Cube diag = root-3. Beautiful !
The administrator has disabled public write access.
 
#543
Re: onStart/onStop will stay forever 2 Years, 8 Months ago  
Old post, but just found something like this, too!! Was driving me nuts!
Had some coding in an 'OnUpdate' event, which was working. I changed some things
in the coding, which (at the time unknown to me), was incorrect, so it would not have
worked then. But the OLD (last correct WORKING script for that event was still running
in the background!? Could only see that my new coding was not working, by saving,
closing &re-starting Physion, & re-loading. I would have thought that, working or not,
when clicking 'OK' in the event script-editor would at least remove the old coding.
Have a good weekend! Sunny here, in South Australia.
Glenn555
Expert Boarder
Posts: 80
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Adelaide, South Australia Birthday: 05/01
1x1 square diag = root-2. Cube diag = root-3. Beautiful !
The administrator has disabled public write access.
 
Go to topPage: 12