blendman's Recent Forum Activity

  • Hi Arima and Newt.

    Thank you very much for your answers

    > I would like to know if it's possible to create a 2D software with construct, like photoshop elements, or a painter lite (not with all of the fonctionnality).

    >

    Yes, you can. I've made one myself. You'll want to use the canvas and image manipulator.

    Thanks.

    I have see the canvas and image manipulator. They have a lot of interesting features.

    But I haven't found some others like :

    • change or modify/copy the alpha of the canvas (alpha channel)

    The alpha of the canvas is or isn't premultiplied ?

    [quote:2vk0f3i6]

    - it is possible to create a sort of "windows" menu, at the top of the application (file/edit/iamge/view..) ? I have tried to add a "menu" but it doesn't work.

    You have to make your own, such as with sprites or text objects.

    ok, but what is the "menu" option, under "window propertie" ?

    We can add some menu and submenu, how can we use it ?

    [quote:2vk0f3i6]

    • for painting, we have to use the canvas ? Is there some informations about the utilisation of the canvas (blend mode, draw a sprite on the canvas..), because the page for the canvas on the wiki is empty ?

    he way I did it is by pasting the brush sprite to the canvas.

    Yes, it works fine .

    I have seen that we can paste a lot of things on the canvas, particles too .

    [quote:2vk0f3i6]

    I'm looking for informations about sprites and canvas transformations too :

    • sprites : size, scaleX/Y, rotations, opacity...
    • canvas : opacity, transformations (resize, stretche..), cut/copy/paste, save..

    That info can be found in the wiki, on this page in the 'common' section: http://sourceforge.net/apps/mediawiki/c ... ite_Object

    One thing to watch out for is the image manipulator returns an incorrect value when retrieving the y position of a pixel. It's both upside-down and misaligned.

    erhap's it's more easy to change the size of the drawing sprite .

    Yes its possible, but its a pretty contrived process.

    There's a ton of stuff you have to take into account on every little thing you do. Stuff like reading from the gpu, relative coordinates, no existing menu system, and canvas...has a few issues.

    It's even possible to do some layer modes, but its not possible to add them on the fly.

    Same goes for the particles object, it will paste into the canvas, but you cant change the texture during runtime.

    es, I have seen that the canvas has got some bug.

    But, I hope they can be resolved .

    Some questions :

    • can I change the width/height of a layout with code ?

    when I maximise or change the window size (with the mouse), the canvas is very buggued, is there a solution to resolve that bug ?

    Thank you.

  • Hi

    I would like to know if it's possible to create a 2D software with construct, like photoshop elements, or a painter lite (not with all of the fonctionnality).

    So, I'm looking for informations on creating a 2D painting software with Construct (tutorials, examples...) :

    • dis there a general tutorial on how creating graphic application with construct ?
    • it is possible to create a sort of "windows" menu, at the top of the application (file/edit/iamge/view..) ? I have tried to add a "menu" but it doesn't work.
    • for painting, we have to use the canvas ? Is there some informations about the utilisation of the canvas (blend mode, draw a sprite on the canvas..), because the page for the canvas on the wiki is empty ?
    • it is possible to create some windows pop up for options (like brush parameters, or adjustement layer...) ?

    I'm looking for informations about sprites and canvas transformations too :

    • sprites : size, scaleX/Y, rotations, opacity...
    • canvas : opacity, transformations (resize, stretche..), cut/copy/paste, save..

    I think I will use particles as a paint tool too, in this application.

    I have read soms threadsabout paint with construct, and found some examples, but, perhap's there are other int?resting example or tutorials .

    Thnak you very much if you have some of theses informations.

  • great ! Really, really great

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Great, thank you .

  • Linkman2004 : Thank you for your answer. And sorry for my example. itwas very bad when I re open it. Thank to you I have understand how does work the repeat and for each object event.

    Thank you for the example.

    Newt : thank you for helping me. Your example is very interesting too. It reminde me some GML code. Thanks !

  • Wow, that is a LOT of sprites. Be careful to watch your VRAM usage!

    es, it's too much I think. I will tried to reduce the number of frame of my animation (20 to 8 or 10 could be great), to decrease the number of sprite for a map.

    This cap will show you how to change an animation, but it also shows some of the issues with using just one object, IE multiple behaviors.

    http://dl.dropbox.com/u/666516/multianimations.cap

    aho, thank you very much, it's great ! Thank you very much .

  • [quote:1zgbopz4]In GM, you can load several (multiple) sprites in a unique Object. If you want, you could create a game with only 1 object, and thousand sprites in it, with all the events for each sprite.

    In fact, we don't do that, but, it's easier to "manage" and organise 15-30 objects in a game than 150/300 objects and more .

    There's no reason why you can't do that in Construct. You just have to take into account that every frame you load must have an existing frame in game. So in theory you can have just one object, as long as that object's number of frames is equal the the maximum animation you plan on loading.

    h, sorry, I misspoke, I forgot to mention :

    "In GM, you can load several (multiple) sprites in a unique Object, at the same time (together(?))".

    it means that you can draw several-multiple sprites with one object, at the same time /together.

    We can do that in construct , to draw more that one sprite for an object at the same time ? If yes, I'm very interesting by the technic .

    (Because Construct is a very good application, and I would like to use it for my commercial games if I can ).

  • There's no real reason for a feature like that. You can achieve the same effect using multiple sprites. That's exactly what containers are made for.

    es, you're right, for little and medium (middle?) game. But for very very big game, I think it's a very usefull feature .

    [quote:1q2sovcy]How else would you tell the multiple images what to do? I don't know how GM does it, but since a sprite is basically an image anyway...

    his feature is very interesting to have an easy and good organisation in your cap.

    In GM, you can load several (multiple) sprites in a unique Object [edit]and draw the multiples sprites (of this unique object) at the same time/together[/edit]. If you want, you could create a game with only 1 object, and thousand sprites in it, with all the events for each sprite.

    In fact, we don't do that, but, it's easier to "manage" and organise 15-30 objects in a game than 150/300 objects and more .

    I will try to explain (sorry because, I'm not very good in english, so if it's not easy to understand, please tell me ).

    To explain, I have to show you all the calculs I have made for my game, to manage and organise the objects and the sprites.

    In my game (and in other big game), we can have :

    • 500/600 Mo of graphics (sprite : characters, fx, UI, enemies, NPC, grounds, trees, plants, objects...)
    • in a map (layout) I will have at least for the sprites : 4000 (characters)+150 (vegetations, house, pnj..) + 1280 sprites (enemies)+1000(UI+FX) = 6430 sprites differents to organise for a map.

    The calcul for the sprites:

    A lot of sprites will be reused, but not all. The sprites characters  + UI/fx will reused. Not the ennemies, and not necessary the vegetations/house/pnj.
    And I don't talk about the customisation :( (the ability for the player to change his cloth, sword...)
    
    [ul]
    	[li]1 player  : walk, sword combat, magic, dead, other animation > 5*8 directions*20 images = 800 sprites[/li]
    	[li]4 friends : 4*5*8*20 = 3200 sprites[/li]
    	[li]enemies : 4 differents by map- 2 animation (walk, fight) : 4*2*8*20 = 1280[/li]
    	[li]vegetations/house/pnj bu different univers : 10rocks + 10trees+10plantes+10 flowers+15grounds+1background (tiled)+10house+40little accessories/objects+5fx (fire, smoke..) +4pnj+others objects (actions, teleport, doors, fontain..).. >> between 110 and 150 sprites by univers[/li]
    [/ul]
    The differents "univers" are :  5 forests,  2 deserts,  2 moutains, 2swamp (marsh), 3 plains, 6 city, 3 prairies...... > 30 univers differents
    (My map are 5000*4000. And I think I will have 50 to 100 maps. Somes maps will be in the same "univers")
    So I will have  125*30 sprites for the vegetations/house/pnj > 125*30 = 3750 sprites.
    [/code:1q2sovcy]
    
    [ul]
    	[li]The objects : I can use of course 1 object for several sprites  :[/li]
    [/ul]
    [b]The objects : [/b]
    [code:1q2sovcy]
    The map :
    [ul]
    	[li]1 object player + 1 object shadow + 6 objects equipement + 1 object for the pathfinding (collision player)[/li]
    	[li]1 object friend + 1 object for the pathfinding (collision)[/li]
    	[li]1 object "PET" (animal) + 1 object for the pathfinding (collision)[/li]
    	[li]1 object enemi (for all the enemies in  the map) + 1 object for the pathfinding (collision)[/li]
    	[li]1 object tree-rocks-plante-flower-house-other objects (decor-stage set (?)) : no dynamics objects[/li]
    	[li]1 object for the tiled background[/li]
    	[li]1 object for the grounds (placed over the tiled background) ?[/li]
    	[li]5 or more objects "action" (teleport, safe (box), door, HP fontain, magic object..)[/li]
    	[li]1 object NPC -PNJ[/li]
    	[li]5 objects FX (fire, smoke..) and dynamic FX (Magic spells)[/li]
    	[li]1 object for the block collision (invisible)[/li]
    	[li]1 object for the target of the player[/li]
    	[li]the objects "drop", items.. : 4 differents[/li]
    [/ul]
    UI :
    [ul]
    	[li]UI for the enemies (health bar, info bar) : 3 objects[/li]
    	[li]UI for the PNJ : 4 objects[/li]
    	[li]1 object for the GUI (player)[/li]
    	[li]1 object by menu > 10 objects (inventory, spell book, quest book, option menu, pet menu, friend menu...)[/li]
    	[li]10 objects for the button of the menus (I don't want to use the button object) : button ok, close, radio, bar...[/li]
    	[li]1 object for the health bar-magic bar, xp bar[/li]
    	[li]icone objects (spells, sword used..) : 2 objects[/li]
    	[li]1 object Cursor[/li]
    [/ul]
    

    60/70 objects to organise for a layout.

    + the objects that I have forgotten, because we forget always some things.

    + the other objects to organise (text...) which aren't no sprite object, but we need to organise it too in our .cap :).

    [/code:1q2sovcy]

    So, I think I will have 60/100 Objects by map to organise.

    So, I prefer to have to organise 30-50 objects than 100 objects. It's easier.

    With the "multiple sprites in one object" feature, I think I could have only 40-60 objects to organise in my .cap, and it would be more cool for me .

    It's like to have folders with global variable. When we use only a fexw globale variable (10-20) in a game, it's not a problem. But, when we use a lot of global variable (50-100), it become really dificult to have a good organisation.

    I hope I have been clear .

    Thank you for help me .

  • Hi

    I try to make that :

    • I have an object named "enemy"
    • at the layout I create several instance of this object "enemy", with different vprivate variable (nammed "type").
    • with each value (for the variable private "type"), I want to load somes images (to have differents enemys, but with a unique object). So to have differents instances of the same object which dras diffirents images (animation).

    I have try with several animations, sub-animations, etc.. But, it doesn't work. I don't know why.

    http://blendman.free.fr/construct/enemyImages.zip

    Someone knows what I'm doing wrong ?

    Thank you

  • Thank you for your answers .

    [quote:3dumim9j]

    What I'm looking is the ability to change the frame of a unique sprite Object, but not for all the instance of this Object

    Ah. I'm not sure if there is a way to do that.

    es, I think it's not possible as easy as I expected.

    Perhap's with a special technic, plug in, or another hidden feature .

    [quote:3dumim9j][quote:3dumim9j]I try to understand, but if you would have an example, it will be more easy for me .

    It took me a month to figure out how to do it for my game, and I'm very busy. I might give it a shot, though.

    The example was quicker to make than I thought. It's a lot faster to make when you already know how to do it!

    .

    [quote:3dumim9j][quote:3dumim9j]perhap's with a plug ins, like with GM.

    Unless the "s" plug-in has some sort of feature like that, there aren't any others that have memory management. You'd have to create your own.

    think I know why. It's because Construct doesn't work like GM. In construct all the images are stocked in the ram, and only send to Vram when needed (if I have understand).

    So, we can't free the ram easily. Because if we do that, our images will be destroyed, and we 'll need to load them again when needed.

    [quote:3dumim9j][quote:3dumim9j]we can't use several image in a single sprite object ?

    No.

    k, a good feature request, so .

    I use this feature a lot with Gm, and it's very usefull to have a unique Object that can draw several image, for a lot of things (characters with different parts, UI...).

    Different animation frames / subanimations?

    I have tried, but it doesn't work in my example.

    I don't know what I'm doing wrong.

    My new example :

    http://blendman.free.fr/construct/enemyImages.zip

    PS : sorry for my bad english.

  • Hi

    I agree, it would be really usefull. Especially for big and professionnal games .

  • Great !!

    Thank you very much for this example. I will try to use in my game

blendman's avatar

blendman

Member since 8 May, 2010

None one is following blendman yet!

Trophy Case

  • 14-Year Club

Progress

14/44
How to earn trophies