lionz's Forum Posts

  • 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

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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?

  • It's a weird logical operator in C2 but you can use it like this with Pick by evaluate in System :

  • Most events trigger every tick without you having to change anything. I'm not sure what a 'code animation' is so I'll let someone else follow this up. It's probably easy to do I just don't understand what you want.

  • What triggers the death animation? If it is an instance variable for health reaching 0 then the event 'object health=0 - trigger death animation' will work for each instance.