dop2000's Recent Forum Activity

  • AllanR has explained you how to do it - set frame 0 on one sprite instance, load an image. Set frame 1 on another sprite instance (or pick an instance with frame 1), load another image. Repeat as many times as needed. Your sprite should have enough empty frames, and animation speed set to 0.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It should work the same way on Android. You probably have a mistake in your code, you need to post your project or a screenshot of events.

  • You still can add these objects into another family (one object can be a member of multiple families). But of course, you will not be able to access behavior properties if they are defined in different family.

    Maybe you can use "On created" event for each family to set some properties.

  • One way to do this is to add all such objects into a family. Then, after you created an object, add a sub-event "System Pick last created Family". In this sub-event you can change properties of the newly created instance, for example "Family set angle to 90"

    If you need to change behaviors or instance variables, you will need to define them on the family.

  • SpriteFont is an image. It will always look exactly the same on all devices. While Text object may be rendered differently, depending on the browser, installed fonts etc. There are lots of other differences - SpriteFont can be scaled smoothly, you can control the spacing for each individual character etc. And of course, since it's an image, you can add any effects to characters, outline, shadow, or even replace characters with pictures.

    For example, you can display a message "You collected 10 #", where instead of # symbol there will be a picture of a golden coin.

  • klabundee is right, in your example it doesn't matter when you set the boolean variable, you can set it in the main event.

    But in situations when you need to run an action after previous sub-events are finished, you have to do it like this:

  • Or something like this:

    On every tick
    For each Coin ordered by Coin.Y
    	Coin set x to lerp(self.x, Player.x, dt*10/(loopindex+1))
    

    Physics behavior is definitely not a good choice here.

  • I'm making gifs with GifCam tool - it's free and easy to use.

    blog.bahraniapps.com/gifcam

  • You can't just copy/paste events here, we are not able to read them.

    You need to make a screenshot and post it as an image. Or upload your project file to a file sharing service and post the download link.

    I'm guessing you didn't add delays between dialogue phrases. Try this:

    Set text to "it is a beautiful day outside"
    Wait 1
    Set text to "on days like these, poachers like you..."
    Wait 1.5
    Set text to "should be burning in hell"
    
  • Where is that "else"? I can't make sense of your code..

    If only one combination of checkboxes can be correct, all you need to do is this:

    Submit is clicked
    
    	.... is checked 
    	.... is checked (the winning combination)
    	.... is checked
    		Add 1 to Correct
    	Else 
    		Add 1 to Wrong
    

    Note, I recommend changing Submit to a button, this way you will not have to use "Trigger once" (which can cause different problems in this code).

  • My player still only moves in front of the tree and when he doesn’t he collides with it as it’s a solid.

    Wait, your trees are solid?? Then how the player is supposed to get behind them? Does my example work if you remove Solid behavior?

    If you don't want the player to collide with trees, you need to define collision polygons on the tree trunk only, and also enable/disable the Solid behavior with events, depending on player position.

  • Is music already playing when you open this layout? If it is, then you need to stop it! Use "If sprite not on screen -> Audio stop music tag"

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