AccueilAccueil  FAQFAQ  RechercherRechercher  Dernières imagesDernières images  S'enregistrerS'enregistrer  Connexion  
Le deal à ne pas rater :
Cartes Pokémon : la prochaine extension Pokémon sera EV6.5 Fable ...
Voir le deal
Le Deal du moment :
ETB Pokémon Fable Nébuleuse : où ...
Voir le deal

 

 [resolu]background et background_add (et message_background)

Aller en bas 
3 participants
AuteurMessage
blendman
Utilisateur confirmé: Rang **
blendman


Messages : 433
Projet Actuel : Crée des jeux, logiciels, BD, Romans et nouvelles.

[resolu]background et background_add (et message_background) Empty
MessageSujet: [resolu]background et background_add (et message_background)   [resolu]background et background_add (et message_background) EmptyMer 16 Fév 2011 - 17:06

salut

j'ai remarqué que lorsque l'on charge avec GM8 un background en png directement dans le soft, il prend bien la transparence en compte. Mais si on fait la même chose avec background_add(), il ne la prend pas en compte.

Vous savez comment on peut avoir la transparence du png avec background_add ?

Marciche beaucoup.


Dernière édition par blendman le Mer 16 Fév 2011 - 20:05, édité 1 fois
Revenir en haut Aller en bas
http://blendman.blogspot.com/
onilink_
Modérateur
onilink_


Messages : 9180
Localisation : Montpellier
Projet Actuel : Planet Centauri
OniDev

[resolu]background et background_add (et message_background) Empty
MessageSujet: Re: [resolu]background et background_add (et message_background)   [resolu]background et background_add (et message_background) EmptyMer 16 Fév 2011 - 19:07

T'est sur ? Y a pas un paramètre pour la transparence ?

_________________
[resolu]background et background_add (et message_background) Runningpotato1[resolu]background et background_add (et message_background) TvF6GED [resolu]background et background_add (et message_background) MdetltS
Revenir en haut Aller en bas
robinlife
Utilisateur confirmé: Rang ****
robinlife


Messages : 977

[resolu]background et background_add (et message_background) Empty
MessageSujet: Re: [resolu]background et background_add (et message_background)   [resolu]background et background_add (et message_background) EmptyMer 16 Fév 2011 - 19:12

Y'a background_alpha sur GM7

_________________
suivez moi sur ig : @kostozbrr
Revenir en haut Aller en bas
blendman
Utilisateur confirmé: Rang **
blendman


Messages : 433
Projet Actuel : Crée des jeux, logiciels, BD, Romans et nouvelles.

[resolu]background et background_add (et message_background) Empty
MessageSujet: Re: [resolu]background et background_add (et message_background)   [resolu]background et background_add (et message_background) EmptyMer 16 Fév 2011 - 19:59

onilink_ a écrit:
T'est sur ? Y a pas un paramètre pour la transparence ?
ben normalement c'est soi-disant automatique, mais visiblement c'est encore un joli bug de GM, parce que ça marche pas du tout.

Citation :

background_add(fname,removeback,smooth) Adds the image stored in the file fname to the set of background resources. Many different types of images can be dealt with. When the image has an alpha channel, this is used for transparency. removeback indicates whether to make all pixels with the background color (left-bottom pixel) transparent. smooth indicates whether to smooth the boundaries. The function returns the index of the new background that you can then use to draw it or to assign it to the variable background_index[0] to make it visible in the current room. When an error occurs -1 is returned.
et bien ce qui est en gras ne marche pas chez moi avec mon png.

Edit : ah j'ai compris voilà la raison :
Citation :
message_background(back) Sets the background image for the pop-up box for any of the functions above. back must be one of the backgrounds defined in the game. Unfortunately, alpha values are not taken into account. However, if the left-bottom pixel has an alpha value of 0, all pixels with that color will be considered transparent.


j'utilise le background en tant que background message c'est pour ça. Bon, ben tant pis.
Revenir en haut Aller en bas
http://blendman.blogspot.com/
Contenu sponsorisé





[resolu]background et background_add (et message_background) Empty
MessageSujet: Re: [resolu]background et background_add (et message_background)   [resolu]background et background_add (et message_background) Empty

Revenir en haut Aller en bas
 
[resolu]background et background_add (et message_background)
Revenir en haut 
Page 1 sur 1
 Sujets similaires
-
» [Résolu] Un background en GIF ?
» [Résolu] Est-il possible de contrôler la depth d'un background?
» [résolu] Background
» Tile ou background ? [résolu]
» Problème de Background... [résolu] :D

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
Forum Le CBNA :: Développement :: Entraide débutants-
Sauter vers: