dop2000's Recent Forum Activity

  • Change array height to 2. Then you can store JSON string at Y=0 and object name at Y=1. Something like this:

    For each SpriteFam
    .. Array insert SpriteFam.AsJSON at index 0
    .. Array set value at X=0, Y=1 to SpriteFam.ObjectTypeName 
    

    To restore:

    Array For each X
    .. Create object by name: array.at(array.curX, 1)
    
    .... (sub-event)
    .... System Pick Last Created SpriteFam 
    ........SpriteFam set from JSON array.curValue
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When you create a family instance, a random family member will be created. Even if you try to load its state from JSON after that, it won't change the object type.

    Do don't use "create family", you need to create the particular object. If you are using an array to store JSONs, you can save the object name in the same array. And then use "Create by name" action.

  • That's why everyone should use Debug Mode. You could've spotted this in 2 minutes.

  • If you disabled "Set angle" in bullet properties, you can use "Set angle of motion" action to direct it at enemy. For example:

    Bullet Set Angle of motion to angle(self.x, self.y, Enemy.x, Enemy.y)

    By the way, the link in your last comment doesn't work.

  • Here is a similar demo, maybe you could use it:

    howtoconstructdemos.com/floating-thumbstick-capx

  • This is the correct syntax:

    runtime.callFunction("prova");
    
  • Well, maybe that is the bullet you see.

    A common solution is to create a separate unused layout as a repository for sprites, and move that bullet instance there.

  • Maybe you also left a bullet instance just outside of the layout in the editor.

    Run the project in debug mode (Shift+F4) and check all bullet instances.

  • I don't see any problems with events on the screenshot.

    Does the bullet reappear from another side of the screen? You didn't add Wrap behavior to it by any chance?

    If you can't figure it out, please post your project file.

    And a unrelated problem I'm having the editor asks me if I want to create a true?false hiarchy (in several other instances as well) when I don't put in or ask for that option.

    I don't know what you mean by this. Can you make a screenshot when this happens?

  • Here is an example:

  • The link you posted will only work on your computer.

  • There are many ways to do this.

    The easiest is with Bullet and Timer behaviors. Enable the Bullet behavior on startup with angle of motion set to 270 degrees. When the pillar is hit, change the angle of motion to 90 and start a timer. On timer event change the angle of motion back to 270 degrees.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 271 followers

Connect with dop2000

Trophy Case

  • 9-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x14
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

29/44
How to earn trophies