#1
|
|||
|
|||
Trouble transitioning from one vizard
...file to another.
Hey all, I'm having a lot of trouble getting one vizard file to transition to another by way of a button. I was able to get it to work once, but now it will no longer work upon creating a new button and giving it the same functionality. I'm also putting all of this within a different scene from the main one, if that helps. Code:
import viz viz.go() viz.clearcolor(0,0,1) Next = viz.addButton() def onButton(obj,state): if obj == Prev: if state == viz.DOWN: vizact.onbuttondown(Next, execfile('Vizard1.py')) else: Prev.remove() MainMenu.remove() Nxt.remove() Tutorial.remove() Previous.remove() MainBtn.remove() Next.remove() viz.callback(viz.BUTTON_EVENT,onButton) Code:
import viz viz.go() viz.clearcolor(0,0,1) building = viz.add('level1.3ds') building.setPosition( 0, 0, 10) building.setScale( 7.5, 7.5, 7.5 ) It would be nice if someone could help me figure this out by Friday, as it's urgent. Thanks for any help provided. Last edited by DBurks2818; 04-26-2009 at 08:19 PM. Reason: Needed to fix title. |
#2
|
|||
|
|||
Here's my code if it helps (Main file is "GUINewTitle"):
http://rapidshare.de/files/46918311/Linking.rar.html The button is on the new game screen, "Next." |
#3
|
|||
|
|||
Ok, it seems that the problem is that Vizard isn't able to handle the amount of buttons/data in my main file while still being able to load the .3ds file. Is there anyway around this?
Thanks! |
#4
|
|||
|
|||
Why are you trying to open up different Vizard windows? Can't you do this with one Vizard window and multiple scenes?
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Vizard tech tip: Using the Python Imaging Library (PIL) | Jeff | Vizard | 0 | 03-23-2009 12:13 PM |
Vizard tech tip: Text to Speech | Jeff | Vizard | 1 | 01-15-2009 10:39 PM |
McAfee Privacy Service 8.1 causes Vizard not to run | mspusch | Vizard | 2 | 09-24-2008 06:17 PM |
Vizard won't run | wouters | Vizard | 5 | 02-05-2008 12:12 PM |
new vizard user having trouble | bhs125 | Vizard | 1 | 09-10-2004 03:01 PM |