tobek's Recent Forum Activity

  • Thanks for the responses guys; madster, your recommendation seems great, I'll give it a go. I'm still figuring out collision masks because I don't think these letters will all have the same width, but I assume I can have a strip of collision masks to go along with the strip of letters, or something similarly easy - it seems figure-out-able. Good to know this isn't suicide performance-wise, too. Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi everyone,

    I need to make about a hundred sprites, and I don't want to make each object by hand, right-clicking and selecting "insert an object" and loading the image, etc. It would be much easier to be able to do it in a Python script, because then I could just index through all of the images in a loop and assign each to each new object, and ideally store each object in an array. Is this possible?

    Here is what I want to do: in the game I'm making, the player leaves behind a trail of text as she moves, spelling out various things from a text file. Each letter is itself a rather elaborate, though small, image (with color) and I don't know if I could make it into a font (I have no experience with making fonts). And, besides, if I made it a font, every letter would have to be its own text box anyway because each will need its own rotation to follow your movement accurately, and each letter might not fall in line with the letter before it, so I figure that, in terms of programming and resources, there is no difference between 100 separate sprites and 100 separate text boxes of one letter each. And if I can make 100 separate sprites at run time and store all of these in an array (from which I could create and index instances), it'd be pretty easy to do. But I am open to other suggestions on how to do this.

    Hopefully that was clear. Thanks a bunch!

  • Hey, thanks for the info and the welcome. It turns out I was failing to put the sprite name in single quotes when calling SpawnObject - an error I should have spotted since I was using quotes correctly with System.Create! But it's good to know that they are equivalent, that's what I was looking for, thanks!

  • Is there any difference between these two functions? I can't even get SpawnObject to work at all in a script, though it works fine as an action in the event sheet. Am I correct that System.Create will produce instances of the object in question, still indexable as normal? Well, they are indexable, I just checked. I guess I wanted to make sure that if I create 400 copies of a sprite using System.Create, I am not wasting resources actually making new objects, they are for real just instances.

    Thanks!

tobek's avatar

tobek

Member since 28 Aug, 2010

None one is following tobek yet!

Trophy Case

  • 14-Year Club

Progress

14/44
How to earn trophies