Zetar's Forum Posts

  • Hello Ashley! Your doing a great job BTW! I selected Other because I don't see (Containers) on the List. I LOVED that feature in Construct Classic. It is a bit annoying to have to destroy all parts of one main object that are pinned to it. Family Helped a little where you could set all items on one object in one family, but if you have multiple objects with the same items pinned to it, you have to get creative with your deletion process...   

    Is Containers something you are still looking into, or are the other feature able to compensate for not having it?

    If That is a No-Go, I choose DEBUGGER! LOVE YOU GUYS!!!!!!!

  • I am creating a kind of mini-map and I am having an issue. I am creating sectors in my mini map using canvas.

    Nested For/Next Loop:

    I spawn stars on the layout in random places.

    Create a Canvas

    Size it to layout width/height

    paste stars into canvas

    place canvas where it goes

    Destroy stars

    BUT...   Every cycle when the canvas is create it copies the previous set of pasted objects and adds the new ones to it...

    WHAT AM I DOING WRONG???   

    Updated CAPX-Solved http://www.box.com/s/578b7dfdb3332fa7408e

  • Although I think the the idea is spot on, I would need a tutorial on HOW to create an online video. What recording software do I use? Do I need a Mic? A Video Camera?   <img src="smileys/smiley23.gif" border="0" align="middle" />

    {Half Kidding... I could probably figure it out, but I just have never done that before...}

  • Solved - OK, so I figured out that my array is building the Axis depth at the Max, but because I am using a random amount of stars up to that MAX, The rest of the Array position fill with 0. Therefore, 0,0 on the layout spawns multiple stars...

    If anyone cares, I just filled the array with -100 to start with, then delete any stars at -100x-100...

  • OK, I am Revising my Request...   I fixed the Sector Re-draw with the error I found. But now, WHY IS 0,0 always spawning lots of Stars? - Reloaded CAPX in First post - please re-download...

  • OK, I figured out that for some reason, when I delete the primary instance 0 of the canvas at Startup, when I create new ones it starts with 1, 2, 3 ect... SO Array 0,0,0 is Blank...

    Hmmm....

  • I have a neat Mini star map in the upper left of the window that is created by filling the entire layout with stars, copying them to a canvas, and Downsizing that canvas. This becomes a "sector" on the Mini-map. The sector Number IS the Canvas IID. The original stars are deleted, and the process begins again until all sectors are drawn.

    While this process is running, I am filling an array:

    • X0= Star.x, X1= Star.y
    • Y axis position accounts for the individual star (0 is first star, 1 is second ect.)
    • Z is the Sector number - which SHOULD correlate with the Canvas IID of the mini-map

    <font color="blue">Does that make sense? Anyways, when you click on the mini-map I want the Layout to re-draw the stars relating to the array Z axis matching the Canvas IID. But it looks like the stars dont match the sector in the mini map???? AND 0,0 of the Layout ALWAYS has a bunch of stars on it... WHY!!!! </font>

    Can anyone Help? Here is the Link http://www.box.com/s/a1c37e12480b56fa21bc

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have node points that correspond with node buttons you can click. I am trying to get the player sprite to travel to each point when clicked, but only to the nodes that are joined by rail. (The moving I have down, it is the picking I am having issues with.)

    I stored a text variable "AvailableNodes" in Each Node button. Example "0,2,3". When you click on the Node Button I want to search the text var with TokenAt and see if the node the player is on is in the list. Then send the player to that node that was clicked.

    One question I have is: When storing a text value in an object variable, when using TokenAt, do I add "" in the variable or not?

    I may be doing something wrong with TokenAt... I really need another pair of eyes to look at this and help...   PLEASE?

    http://www.box.com/s/40b40aefb4e67827a571

  • I would go with Danijerry's idea. I am running into difficulty wity the distance idea. It would only be a tiny bit less complicated...   Someone needs to make a plugin for this :)

  • @Zetar Your method makes a lot of sense to me but I think there's a problem. System Compare Distance (Self.x,Self.y,ShipSprite.x, ShipSprite.y)<300 That line gives me an error saying you cannot refer to "self" in a system expression. The other problem is in line: ->Set variable Self.AttackUID = ShipSprite.UID I don't know how to set Self.Variable. I only know how to set a variable value for a specifically named sprite.

    You are right. I did not have it up and running at the time. It hates Self in expressions... I will look at your CAPX and see if I can figure anything out if someone else doesn't come through for you :)

  • Thanks for looking into this Tom. I have been AFK for about an hour, but before I left, I tried clearing my cash, and it did nothing. But I just re-booted and now it looks fine. I will let you know if it acts up again.

  • Well.... I guess not.   I will study that one.

  • Here is an example using the sine cycle to mirror the image.

    http://www.box.com/s/d1a3ac1ceb360e665cd2

    LOL - Kyatric - Yours flips in the middle, not at the ends <img src="smileys/smiley36.gif" border="0" align="middle">

  • Has anyone created a physics grappling hook that works.   I cant get mine to work. Can someone look at this and help me.

    http://www.box.com/s/b5b8d7e5614ab83d980f

    When I add the revolution joint I get a Physics error...   Does it give you an error? (Enable the resolution joint on the Suction cup sprite and disable the pin behavior.)

  • I am getting a "Devotee Badge" Every time I perform any action on this forum. Also Some of my favorie links are directing me to a blank page with: Error executing child request for /error.aspx.

    Any Ideas what happened?