gabrign's Forum Posts

  • Not worry, I moved to chrome and anothers , everything fine. Time will fix it for sure, when mozilla notice it properly.

    Thanks.

  • Problem Description

    The use of name() on xml not works under:

    Firefox 39.0 desktop and android versions.

    IE 11.0.96

    But works under:

    Chrome 43, Dolphin (android versions)

    I opened an thread about this problem and Magistross confirm this problem:

    viewtopic.php?f=147&t=149672

    Attach a Capx

    https://www.dropbox.com/s/bqov8q804lzln ... .capx?dl=0

    Description of Capx

    show the name nodes ("<name></name>") from one selected "book" node, from xml file.

    Steps to Reproduce Bug

      simply use ("name()") from the usual way

    Observed Result

    No result from operation

    Expected Result

    list of xml node names

    Affected Browsers

    • Chrome: (NO)
    • FireFox: (YES)
    • Internet Explorer: (YES) (11.0.96...)

    Operating System and Service Pack

    Windows 7 SP1

    Construct 2 Version ID

    206 64bit

    EDIT:

    If somebody test this and if works or not, post results please. I'm looking views raising on this thread but nobody post results, thanks you. <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

  • Ok, its confirmed:

    Works

    On desktop:

    Yes:

    chrome

    No:

    Firefox

    On android:

    Yes:

    Dolphin

    Android standard navigator

    Chrome

    No:

    Firefox (again!)

  • You are right. Works only under chrome ( I was trying under firefox, like you). I will update with test under mobile browsers.

    Thanks you, Magistross, I was expecting something from you, like I already read almost everything about xml at this forums.

  • Improved Question

    Edit:

    I'm using Xpath visualizer tool http://xpathvisualizer.codeplex.com and I can't even make it work there. There is something I'm doing bad and perhaps it's out from construct scope

  • I want get name/label from node (" <line id="a"> </line>" , where I want get that "line" )

    My plan is use it for make a sequence of events, but of course, the events must follow the node list order, but for parse the events I want know which type of event is.

    my example XML:

    <?xml version="1.0" encoding="UTF-8"?> 
    <!-- char 0 = narrador -->
    <visualnovel>
    	<scenes>
    		<scene id="start">
                             <show s="t">smile</show>
    			 <line s="t">
    				Hello
     			</line>
    			<line s="t">
    				What doing here?
    			</line>
    		</scene>
    	</scenes>
    </visualnovel>
    [/code:100nff6v]
    
    I already found this post: 
    
    I'm using this inside a normal for each xml, but it not recovers nothing: XML.StringValue("name()") 
    
    I can move inside the for each node by node with this : /visualnovel/scenes/scene [@id="start"]/*[ "&actualnode&"]
    
    There is somebody here witch used "name()" with sucess ? there is an alternative? thanks you.
  • I'm trying to test a game with preview on LAN, works perfect on Firefox for Android, but the screen goes black (load web title so it found the page) with Android Chrome , in the same mobile device. Can someone give me some clue, please?

  • I'm making a nesting inside a sucesive search in XML nodes, but I want reset it to use "/" like in the Xpath docs http://www.w3schools.com/XPath/xpath_syntax.asp and acess to root node again. There is some form of reset the relative node for the next "For each" event?

  • I'm not sure why happen this: I use a XML object for make a "for each" and found data by first time, then I load again the same data (like plain string , for example) on that XML object and not work the same operation (not give any result then) ... It's like if the Load action from XML not reset the object. I must use another XML instance for work. Somebody can help me?

    EDIT: I feel so embarased... I was calling the function for make the new search from another "For each" of the XML. I was carring the node search position from the another loop, for that I wasn't getting any result (Like doing a subevent). I put the function call outside and everything works. Works like a normal programing language, really nice

    Thanks to blackhornet for response my fault.

  • Hi, I already post some in the forums, I didn't know there is a "official" place for Introducing. So: I started to make games on basic with ZX Spectrum, at seven years old, and from on has been always like a hobby. I usually didn't show much of my works because when the most hard part has pass I lost interest, also I had much interest on see my creation under much devices, specially portable ones. More late, I got some real programming. I started a 2d engine under C++ (started like ANSI C) thanks to SDL. Then appears HTML5 and forget that for make it portable. I make the loading maps TILED (TMX) make the events, conditions, but the big problems of make it compatible with all the browsers was making me crazy. In reality my deep wish was always make a game, so like I didn't had time, I leave my engine, for one really well prepared for multiplataform like C2, and concentrate on make games in the late nights or free time <img src="smileys/smiley1.gif" border="0" align="middle" /> .

    PD: I wait Scirra give export to Linux using node-webkit like for windows and Mac!

  • Objects can belong to multiple families at once. I just plug all the sprites I want to z sort into an additional family called "Zsort" and then do the "For Each (Ordered)" method. Works like a charm.

    Works so great! This must be in the manual like example.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't had words. Looks so fun, and the graphics are awesome!

  • I finished the test using the maths but yours is so simply, elegant...! I didn't take a look to the angle movement actions until now <img src="smileys/smiley17.gif" border="0" align="middle" /> For that I was using bullet for movement. Anyway if somebody wish take a look making it in the really noob way <img src="smileys/smiley2.gif" border="0" align="middle" />:

    dl.dropbox.com/u/47230303/rotation_combat_test.capx

    Thanks you very much!

    PD: The movement of the object in your example appears increase his radius in the movement left/right. Can it be some estrange angle conversion from SC2 ? Anyway, is so perfect at is! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Thanks for reply! Hehehe I put a bad delay for the frames in the gif :P

    I had the formula just there for use it, I think must be something like this (I just wake up in this moment, I don't test it):

    player.Y:

    mouse.Y + int(Round( distance (mouse.X,mouse.Y,player.X,player.Y)* Sin( player.angle ) ));

    player.X:

    mouse.X + int(Round( distance (mouse.X,mouse.Y,player.X,player.Y) * Cos( player.angle ) ));

    I will confirm if this works here :D

  • My project had some particular movement, the player moves forward (with W or back with S) to a point given by mouse (that's done) . Then, the movement to left and right is around it, without change the distance (unless we use the W and S, of course), in few words, the player moves in a circle around the mouse cursor. There is some function of archive this or I must use maths ?

    Here a diagram:   

    s7.postimage.org/v15cnej23/idea_001_zpsd397be6b.gif