cvp's Forum Posts

  • So.. I have a lot of text, which I would like to display in C2.

    Its not totally fancy text, but there is some formatting.

    I have attached a small example of how the text could look in word.

    Imagine that i have A LOT of text. e.g. i have that snippet you see 30 times or so.

    Is there a way to either load it automatically, or copy paste it to somewhere or something? I am ok with some intermediare layer. I do not need to load the word file directly into C2.

    It is not that important that the fonts are the same, i just want to make sure that there is a difference between the headlines and other text.

    I want to display that text in a C2 app. What is the best way to go about that? All suggestions are very welcome

    Edit:

    I cant attach word docs apparently... but some text like this is what i am talking about:

    Headline 1

    Alot of different text… Alot of different text… Alot of different text… Alot of different text… Alot of different text… Alot of different text… Alot of different text… Alot of different text…

    Alot of different text… Alot of different text… Alot of different text… Alot of different text…

    Alot of different text… Alot of different text… Alot of different text… Alot of different text…

    Alot of different text… Alot of different text… Alot of different text… Alot of different text…

    Headline 2

    text

    - Option 1

    - You could also

    - Some more text

    Text text

    • In scope

    • Not in socpe

    • Strange text

    Headline 3

    Some more text, and it keeps on running.

  • You could do something like this:

    roundedAngle = round(yourAngle / 90) * 90

  • My app has been approved in the store since november i think it was.

    Now today i got this message:

    more text before this......

    (Defect) White box is displayed on splash screen. (Procedure) 1. Execute the application 2. Check the screen (Expected Result) White box shouldn't be displayed on splash screen. Thank you for your generous understanding. Tizen Validation Team.

    Anyone experiencing this as well? And how to fix it?

  • Use "on touched object" instead. Or you can use "on touch end"

  • When you have a collision you could check the colliding bullet to see if it is overlapping more than 1 other bullet.

  • Use on touch end instead to enter the lvl.

    Then disregard the touch end if there has been a slide touch.

  • Not answering your question sry.. but related to your XDK note.

    Scirra currently encourage you to use crosswalk instead. See this post

  • I dont have C2 available atm. But you have all the information you need available in the attachment you have shown above.

    The timestamp is a number. The number is counter of milliseconds since january 1. 1970.

    so in a sence you can just record the "start" time as you do on your first click. Like: system -> set date to Date.UnixTimestamp

    then you just have to compare you start time to the current time. (if you are comparing in days you should not compare every tick, but at a more fitting interval)

    You can then calculate the amount of days that has passed since your your starttime. that would be:

    (Date.UnixTimestamp - date)/(1000*60*60*24)

    That find the difference in milliseconds between the two timestamps. The last part converts the milliseconds into days. You have all the other conversions available in the text as well if you want it in something else then days.

    Hope that helps a bit.

  • hmmm... the toll in intself is quite simple. You just pick the font and create the image.

    Install the font on your pc, then pick start the program and pick it in the list of fonts then make adjustments and press save and you have a spritefont you can load.

    Is is a font file you are trying to load? or is it an img?

  • take a look at lerp, qlerp and cubic lerp, that could help you on your way.

    they are nicely described here

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • could you maybe create a small drawing in paint (or something) of what it is you want to do? Some other approach might solve your issue. (Just trying to understand what the problem really is)

  • Have you looked at the program mentioned in this tutorial (GiveYourFontsMono), that could do the trick for you.

  • You could do something along these lines...

    .capx

  • tchem That should be possible yes.

    You can just compare the number of the timestamp to see if it is bigger then either 2 days or twelve minutes, and show the sprites if that is the case.

  • If you want the spawner to spawn bullets in a curtain angle you should keep that angle on a instance variable on the spawner sprite.