kabuto202's Recent Forum Activity

  • Yes, you're right! Thank you once again, and could you assist me with the array issue? I'm not sure if it's ignorance on my part or a bug.

  • How the I get the UID of an object that was placed at runtime using the Create Object command?

    EDIT: Also, I have the following Command setup:

    *Keyboard: A is down

    -Array: Set Size to (Array.Width+1,0,0)

    *System: Every tick

    -Text: Set text to (Array.Width)

    But when I press A the size of the array never increases it just remains at zero. I even tried adding on the start of a layout to change the array size to (2,0,0) and the text still says that the array width is 0.

  • Appreciate the help!

  • If using the Platform behavior, how do I get the object's velocity to use in an expression? Also, where can I get a reference on how to use expression in Construct.

  • Didn't even realize that till now, thanks.

  • Okay, so say I wanna transfer a variable from python. What am I doing wrong here?

    First I make a pyscript

    Word=1[/code:3ar1qtbu]
    
    Then I make an even that says at the start of layout set text to [code:3ar1qtbu]python("Word")[/code:3ar1qtbu] and I keep on getting a message saying Word isn't a recognizable variable.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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.

kabuto202's avatar

kabuto202

Member since 18 Sep, 2010

None one is following kabuto202 yet!

Trophy Case

  • 14-Year Club
  • Email Verified

Progress

15/44
How to earn trophies