dop2000's Recent Forum Activity

  • So what's wrong with my Undo system that uses system Save/Load actions? I understand that you need to tweak your events in order not to call "SaveUndoStep" too often (only when any operation is finished) and it may be a difficult task. But you will have the same challenge with any other Undo system! Because if, for example, you are rotating an object and saving 100 undo steps along the way, you will need to press Ctrl-Z 100 times to undo that rotation.

    So yeah, it doesn't matter if the undo system saves information into local storage, or array, recreates objects or not, you still need to figure out how and when you are saving undo step for every operation in your app.

    .

    Here is an idea that just came to me - if everything in your app is done with mouse, use a single "On mouse button released" event to save undo steps! Set a flag UndoStepSaveRequired=true in all events when any object is changed/created/deleted, you can do this on every tick, no problem. Then in "On mouse button released" event you check for this flag and call the function to save undo step if needed.

  • Or this error message may be completely unrelated to your app.

  • In that simple example - yes, but there are situations when you need to pick one set of instances in an event and then do something with a different set of instances without losing the first picked scope, and it's easier to do with a function.

  • Sorry, I don't understand what issue with outline2 do you mean. Please see this file, both outlines work and I added an event to disable dragging with right mouse button:

    dropbox.com/s/ls9yx2fi43f4ig0/ONE%20Selection%20ONLY%20Tests%20-%20v1.c3p

  • Why do you have "Trigger once" in these events?

    If all these objects always exist in pairs, you need to add them into a container. This way there will be no need for an id variable, instances in each pair will be logically linked together. You can simply do "if LeftSide animation N is playing -> RightSide set animation N". Or even "RightSide set animation to LeftSide.AnimationName"

  • 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 have an answer for you, but I would advise to temporarily close or pause appstore listing until you fix the bug.

    Then continue disabling and removing big parts of your project and see if it stops crashing, even if the game is not playable - remove saving/loading, effects, disable entire event sheets and groups etc. Once it stops crashing, try to narrow it down to a specific event or plugin.

    You can probably run the app in xcode simulator and get some logs which may help to find the problem:

    forums.coronalabs.com/topic/71294-how-to-see-xcode-simulator-log

  • Set Canvas size to 1x1 pixel, on click/tap position canvas to that point. Then use "Canvas paste object" or "Canvas paste layer", depending on your needs.

    After that you will be able to get rgb values from Canvas expressions: Canvas.redAt(0,0), Canvas.greenAt(0,0), Canvas.blueAt(0,0)

  • I believe if you have several conditions in one event and the first condition is false, others are not evaluated. (Unless it's an OR-block)

    But if you have several conditions in one expression, for example Enemy.Type="zombie" & Function.Call("GetEnemyHealth")>0 , the function will still be called and evaluated even if the enemy is not zombie.

  • Since it's in AVD, you should be able to see if there are any errors in Logcat.

  • You need Canvas plugin - put a small Canvas object under the mouse cursor, paste all layers onto it, then you will be able to read pixel color from the canvas. You can probably do this easier with Javascript, but I can't help you with this.

    construct.net/en/forum/extending-construct-2/addons-29/plugin-canvas-41782

  • It's actually quite useful sometimes that the function doesn't pick the same scope of instances. Imagine when one Text instance is clicked you want to make it larger and all other Text instances smaller. You can do this:

    On Text clicked 
    	-> Call Function "MakeTextSmall"
    	-> Text set font size to 20
    
    Function "MakeTextSmall"
    	-> Text set font size to 12
    
  • If you need to pick the same object instance in the function, you need to pass instance UID (or some other identifier) in function parameters:

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 279 followers

Connect with dop2000

Trophy Case

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

30/44
How to earn trophies