kabuto202's Forum Posts

  • Can we get a Python Support sub-board going? Because I often have various questions regarding using Python and Scirra, and someone of those questions don't feel quite right in the Help & Support with Construct board.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Sorry, I forgot to mention it's a 2D array. (Using NumPy's "ones" function). And thank you for the guide!

  • I would like to use NumPy in my project, how would I go about importing it, into construct?

    EDIT: While I'm here, also is there a direct way to import an array from my pyscript into a Construct array?

  • Thank you, I appreciate your help good sir.

  • import random
    
    class RmDef(object):	
    	def __init__(self, x, y, width, height, roomvar):
    		width = 0
    		roomvar = random.randint(1,3)
    			
    		if roomvar == 1:
    			width = random.randint(2, 4)
    		elif roomvar == 2:
    			width = random.randint(4, 6)
    		elif roomvar == 3:
    			width = random.randint(6, 8)[/code:1r9ehp96]
    
    Receiving this error
    
    [code:1r9ehp96]nameError: "width" is not defined[/code:1r9ehp96]
    
    I'm confused cause I'm defining width to be = 0. So why is it saying it's not defined?
  • First of all, I'd like to say that I'm loving construct, currently parallel developing Dungeon Raiders with flex and I gotta say, I'm leaning Construct. There's just one annoying issue with the script editor in Construct...

    CTRL+ F doesn't bring up the Find/Replace menu, I believe this is an issue that needs to be addressed.