dop2000's Recent Forum Activity

  • You need to give more information..

    To publish for what?

    Are you asking how to build a mobile app?

  • You have a global variable Score_Soldier containing high score for this character, right?

    And a Text object (or maybe a SpriteFont, doesn't matter) on your High Scores layout to display this score, let's say it's called Score_Soldier_Text.

    All you need to do in your event sheet is this:

    Score_Soldier_Text -> Set Text -> Score_Soldier

    It's no different to that timer countdown you did a couple of weeks ago.

    Repeat the process for the remaining 3 scores.

  • The link is still incorrect, can't you see?

    Make sure it's not shortened, there should not be any "..." or spaces

  • [quote:2q55lmdp]May I ask, what does it mean to 'pass the item number to the function'? How would I do it?

    I thought you knew this.

    You can pass data to functions as parameters, for example:

    Call function without any parameters:

    Function call "AddToInvertory" ()

    Call function with one parameter:

    Function call "AddToInvertory" (itemNumber)

    Call function with three parameters:

    Function call "AddToInvertory" (itemNumber, inventoryType, quantity)

    Inside the function you can access these parameters using Function.Param(0), Function.Param(1) etc.

    By the way, functions can also return data. So you can have something like this:

    itemQuantity = Function.Call("GetNumberOfItemsInInventory", itemName)

    You pass itemName to the function, and the function returns quantity of this item in the inventory.

    [quote:2q55lmdp]Grab the note and select it from the inventory without going near Jim, and you can read it!

    I'm irrationally proud of myself right now.

    Yeah, I see it now. Pretty good!

    As for the inventory system, I can't tell you which one I prefer, because I don't have any RPG games with inventory

    If I ever need one, I'll probably create it from scratch. It may take more time, but at least it will be tailored to my needs and I'll have full understanding how it works.

  • Zion

    Again - in terms of performance it doesn't matter how many layouts or event sheets you have.

    Other things are much more important - the size of your images and animations, efficiency of your code etc.

    Large number of layouts will make it harder to manage your project. Imagine you have 100 layouts and decide to make a small change on all of them - this will take an hour! So if you can, you should minimize the number of layouts.

    If your code for 100 levels is basically the same, of course you should not make 100 identical event sheet.

  • NN81, You are wrong. Performance depends on implementation and not on the number of layouts.

    Of course if you dump thousands of objects from all 100 levels onto one layout, this will be bad for performance. But obviously this is not a very good technique.

    Zion

    It depends on you game.

    I'm making a puzzle game with 200+ levels and I only have one layout for all of them. My layout contains all fixed interface elements like HUD, dialog windows etc. and an empty "Game" layer.

    On start of every level I read parameters for this level from a text file (which I made in Excel), and create required objects on the "Game" layer.

    And all this works really fast

  • I think IndexOf() only works with 1D arrays, as it can't return two values for X and Y axes.

    Array->Contains value can tell you if this value exists, but to find its coordinates in 2D array you need to loop through it using "For each XY".

  • Your function is never executed, because loopindex is always =0

    I suggest you add a large text field to your layout and use it for debugging.

    Try for yourself:

    DebugText->Append text "Loopindex:" & loopindex

  • You don't need animation frames for different angles. Just keep one frame with the ship facing to the right.

    Then use Enemy1->Set Angle action to rotate the ship to the same angle as your Bullet.AngleOfMotion

    Or you can set "Set Angle=Yes" in Bullet behavior properties and it will fly in the direction of the sprite, i.e. you will only need to change sprite angle. Bullet angle of motion will be changed automatically.

  • Your link is broken, try posting it without the "https://" part

  • luckyrawatlucky

    You mean having 2 spriter objects?

    This is what the OP was trying to avoid.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You have 2 instances of EF_Start.

    When you use "Pick by evaluate" event the system performs 2 steps:

    a) takes the first instance, compares if .stt=choose(1,2)

    b) takes the seconds instance, compares if .stt=choose(1,2)

    Because choose(1,2) expression generates a random number every time, this event works unpredictably. It may pick one instance, or both, or none.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 247 followers

Connect with dop2000

Trophy Case

  • 8-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
  • x4
    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
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies