Visualizzazione dei risultati da 1 a 5 su 5
  1. #1

    Movie clip + Pixel font ....aiuto!

    Ciao a tutti,
    Vi spiego brevemente il mio problema:
    ho creato un menù che segue il cursore e si apre quando lo clicco.
    Il problema e' che questo menù contiene un pixel font che come saprete deve corrispondere al pixel.
    Quando il menù si apre però la sua posizione capita anche a cavallo del pixel (infatti ogni tanto il font risulta annebbiato).
    La mia domanda e': esiste un comando/stringa actionscript che "obbliga" il movie a snapparsi al pixel?

    Per farvi rendere conto meglio vi posto anche il link:
    http://www.air-atlantis.com/temp/

    Grazie

  2. #2
    si questa:


    codice:
    testo.onPress=function(){
    	this.startDrag(true)
    	this.onEnterFrame=function(){
    		this._x=Math.round(this._x)
    		this._y=Math.round(this._y)
    		trace(this._x + " " + this._y)
    	}
    	
    }
    testo.onRelease=function(){
    	stopDrag()
    	delete this.onEnterFrame
    }


  3. #3
    Grazie per la risposta ma scusa l'ignoranza...
    Associato al menu' movie clip ho queste stringe:

    onClipEvent (enterFrame) {
    if (_root.block.top.motion == "on") {
    speed = (_xmouse/30);
    speed2 = (_ymouse/30);
    _root.block._x = _root.block._x+speed+0.100;
    _root.block._y = _root.block._y+speed2+0.100;
    } else {
    stop();
    }
    }

    come faccio ha combinare le tue insieme a queste?

  4. #4
    codice:
    _root.block._x = Math.round(_root.block._x+speed+0.100 )
    _root.block._y = Math.round(_root.block._y+speed2+0.100)

    devi arrotondare il valore di x ed y a numeri interi.


  5. #5
    poi tanto per

    0.1 o 0.10000000000 sempre 0.1 è


Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.