lionz's Recent Forum Activity

  • Logic could simply just be :

    NumToSell = 4

    Price = Green (4?)

    On left click button :

    Subtract NumToSell from Crystal1 Total

    Add to Gold : NumToSell (4) * Green (4)

    Set NumToSell to 0

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can't do it like this, probably use instance variables on the actual object. I'm not 100% sure how you are using the UIDs but when the objects are created in the layout the UID is set unique for that one specific object, when you create them in the next layout they will always have different UIDs. And to also answer the question in the title, the UIDs are saved between layouts but you are creating new objects with new UIDs.

  • This is one of the most common things people make in C2 and it's pretty simple. The platform behaviour has all of this built-in and you update the animations to suit the action. To block out other actions you use conditions and invert them such as if you want to shoot when not jumping then you can add a shoot event and an inverted condition for not jumping.

  • Because you are pinning the star at image point 0 the origin, you can say when the player overlaps the disc at image point 0 as well.

  • How I would do this depends on how much the star matters. Can you overlap a disc without a star being on it for less points? If each disc always has a star pinned to it then the star doesn't really matter does it and is only a visual thing, it's just the disc that matters and you award points based on the disc type being overlapped.

  • From the manual:

    Never, ever enter usernames or passwords in to events. These will be visible in plain text in the exported Javascript, and malicious users will very quickly be able to take control of the account. If you need to connect to something like a database, write a server-side script that talks to the database, then connect to the URL of the server.

    For money and gold in a platform store for Google, Apple etc then that's completely safe, stored on the user's account. C2 makes calls to the account rather than using local variables.

  • Becarefull, if someone says click this link without any information about it use virus checker some people might give u a IP grabber link or something else

    Yeah not really the case on here if they're shown to have a C2 license and have a bunch of rep and long service. The link is usually just to a .capx file where they have tried to solve the problem.

  • You would use a global variable for cash I guess. When you want to buy an item it subtracts the amount from the global variable. In terms of unlocks you could look into using arrays to set whether items are owned.

  • You could make use of both animations and have them each do something different with gameplay mechanics.

  • You would just use a global variable for 'high score' and compare if high score is between 100 and 200, show 1 star, between 200 and 300, show 2 stars etc. Global variable 'high score' will always be there and can always be compared to show the correct rating.

  • In the general sense, you use the IAP object : https://www.scirra.com/manual/173/iap

  • I think this can be resolved by having the MainChar move to touch.x,touch.y. You can store this in global variable if you want. This should make it go to the initial destination of the Object yeah?

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 79 followers

Trophy Case

  • 12-Year Club
  • 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
  • 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
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

25/44
How to earn trophies