Jump to content
#DOPE

C# Rotating RPG

Recommended Posts

#DOPE

Καλησπερα στο Forum.

Σημερα θα μαθουμε πως να φτιαχνουμε ενα color rotation.

Αρχικα αυτο π πρεπει να κανετε ειναι ειτε να φτιαξετε ενα νεο project ή να το περασετε απλα στο ηδη παρον project σας.

Βημα 1ο: Στο ToolBox του Visual Studio κανουμε search "timer" και 'πεταμε' τον timer στο form μας.

(Για να δουλεψει το προγραμμα θα πρεπει να θεσουμε το interval του timer > 0,δηλαδη καπου 10-100 θα ειναι μια χαρα)

Βημα 2ο: Παλι στο ToolBox αναζητουμε την λεξη "panel" και το βαζουμε και αυτο στο form μας.(εσυς βαλτε οτι διαστασεις θελετε.)

Αφου φτασαμε σε αυτο το σημειο ας παμε στο πιο ωραιο part που ειναι ο κωδικας.

Παμε στο source code του form μας και οριζουμε τα χρωματα μας

Spoiler

 


public int rgb = 0;
        public int r = 254;
        public int g = 0;
        public int b = 0;

Επειτα παμε πισω στο Form μας και κανουμε double-click στο timer μας. Αφου καναμε double-click θα μας παει παλι στο source code συγκεκριμενα στο timer section.

Εκει βαζουμε αυτον τον κωδικα.

Spoiler

 


if (rgb.Equals(0))
            {
                if (r <= 254)
                {
                    if (b != 0)
                    {
                        r = r + 1;
                        b = b - 1;
                    }
                    else
                    {
                        r = r + 1;
                    }
                }
                else
                {
                    rgb = 1;
                }
            }

            if (rgb.Equals(1))
            {
                if (g <= 254)
                {
                    r = r - 1;
                    g = g + 1;
                }
                else
                {
                    rgb = 2;
                }
            }

            if (rgb.Equals(2))
            {
                if (b <= 254)
                {
                    g = g - 1;
                    b = b + 1;
                }
                else
                {
                    rgb = 0;
                }
            }
            panel1.BackColor = Color.FromArgb(r, g, b);
        }

Τα αποτελεσμα ειναι: εδω

Αυτο ηταν το Tutorial,πολυ απλο και ευκολο,ελπιζω να σας βοηθησα 😉

Edited by #DOPE
  • Μου αρέσει 1

Share this post


Link to post
Share on other sites

Δημιουργήστε ένα λογαριασμό ή συνδεθείτε προκειμένου να το δείτε

Πρέπει να είστε μέλος για να μπορέσετε να αφήσετε κάποιο σχόλιο

Δημιουργία λογαριασμού

Κάντε μια δωρεάν εγγραφή στην κοινότητά μας. Η εγγραφές μας είναι εύκολες.!

Εγγραφή τώρα

Σύνδεση

Εάν έχετε ήδη λογαριασμό σε αυτό το Forum; Συνδεθείτε εδώ.

Συνδεθείτε τώρα

  • Μηνύματα

    • Fleiss
    • dichvusocks
      Payment Instantly perfectmoney, bitcoin, wmtransfer, dash, ETH (Please click Buy Socks)
      Update Tools Client Dichvusocks.us http://dichvusocks.us/tools.php Link check socks http://check.dichvusocks.us/
      LIVE | 50.62.35.81:62871 | 0.23 | Arizona | 85260 | ip-50-62-35-81.ip.secureserver.net | United States | Blacklist: Yes | Checked at http://dichvusocks.us
      LIVE | 192.169.218.103:6646 | 0.23 | Arizona | 85260 | ip-192-169-218-103.ip.secureserver.net | United States | Blacklist: Yes | Checked at http://dichvusocks.us
      LIVE | 35.225.184.210:9834 | 1.09 | Unknow | Unknow | ec2-18-191-166-144.us-east-2.compute.amazonaws.com | Anonymous Proxy | Blacklist: Yes | Checked at http://dichvusocks.us
      LIVE | 104.197.170.237:9246 | 0.5 | Unknow | Unknow | tor-exit.eecs.umich.edu | Anonymous Proxy | Blacklist: Yes | Checked at http://dichvusocks.us
      LIVE | 192.169.201.207:28881 | 1.25 | Arizona | 85260 | ip-192-169-201-207.ip.secureserver.net | United States | Blacklist: Yes | Checked at http://dichvusocks.us
      LIVE | 174.138.54.241:44599 | 2.12 | Nevada | 89503 | AT&T Services | United States | Blacklist: No | Checked at http://dichvusocks.us
      LIVE | 35.193.155.198:9310 | 0.81 | Unknow | Unknow | The Calyx Institute | Anonymous Proxy | Blacklist: Yes | Checked at http://dichvusocks.us
      LIVE | 35.193.51.107:9543 | 0.73 | Unknow | Unknow | tor-exit-relay-egtorrelay | Anonymous Proxy | Blacklist: Yes | Checked at http://dichvusocks.us
      LIVE | 188.166.33.15:9050 | 0.59 | Unknow | Unknow | Zwiebelfreunde e.V. | Anonymous Proxy | Blacklist: Yes | Checked at http://dichvusocks.us
      LIVE | 178.76.71.141:62913 | 0.52 | Unknow | Unknow | | Unknow | Blacklist: Yes | Checked at http://dichvusocks.us
      LIVE | 192.169.218.61:17718 | 0.23 | Arizona | 85260 | ip-192-169-218-61.ip.secureserver.net | United States | Blacklist: Yes | Checked at http://dichvusocks.us
      LIVE | 35.225.214.70:10099 | 1.6 | Unknow | Unknow | tor-exit.csail.mit.edu | Anonymous Proxy | Blacklist: Yes | Checked at http://dichvusocks.us
      LIVE | 103.79.235.13:35906 | 1.66 | Uttarakhand | 248001 | IRG WIFI Service Pvt. | India | Blacklist: Yes | Checked at http://dichvusocks.us
      LIVE | 128.199.72.46:8081 | 0.75 | Unknow | Unknow | 184-82-24-0.24.public.cmbp-mser.myaisfibre.com | Thailand | Blacklist: Yes | Checked at http://dichvusocks.us
      LIVE | 37.59.8.29:1034 | 3.36 | Unknow | Unknow | ns3099982.ovh.net | France | Blacklist: Yes | Checked at http://dichvusocks.us
      LIVE | 37.59.8.29:6239 | 2.35 | Unknow | Unknow | ns3099982.ovh.net | France | Blacklist: Yes | Checked at http://dichvusocks.us
      LIVE | 174.138.54.241:36791 | 3.63 | Alabama | 36879 | ViaSat | United States | Blacklist: No | Checked at http://dichvusocks.us
      LIVE | 208.113.208.125:23656 | 0.07 | California | 92821 | ps485115.dreamhost.com | United States | Blacklist: Yes | Checked at http://dichvusocks.us
       
    • vn5socks.net
      LIVE ~ 118.139.178.67:44551 | 0.238 | Unknown | Unknown | Unknown | Singapore | Checked at vn5socks.net
      LIVE ~ 185.43.110.132:9999 | 0.286 | Unknown | Unknown | Unknown | Europe | Checked at vn5socks.net
      LIVE ~ 45.76.191.111:6005 | 0.231 | Unknown | Unknown | Unknown | Unknown | Checked at vn5socks.net
      LIVE ~ 158.69.243.148:9999 | 0.262 | Lake Forest | CA | 92630 | United States | Checked at vn5socks.net
      LIVE ~ 47.254.34.150:26006 | 0.18 | Ottawa | ON | k1y4h7 | Canada | Checked at vn5socks.net
      LIVE ~ 58.32.254.125:7070 | 0.37 | Shanghai | 23 | Unknown | China | Checked at vn5socks.net
      LIVE ~ 78.47.225.59:9050 | 0.278 | Unknown | Unknown | Unknown | Germany | Checked at vn5socks.net
      LIVE ~ 138.68.59.157:1210 | 0.225 | Wilmington | DE | 19880 | United States | Checked at vn5socks.net
      LIVE ~ 118.25.237.21:1888 | 0.448 | Beijing | 22 | Unknown | China | Checked at vn5socks.net
      LIVE ~ 220.79.34.109:2018 | 0.182 | Seoul | 11 | Unknown | Korea, Republic of | Checked at vn5socks.net
      LIVE ~ 163.172.166.20:4480 | 0.26 | Southend | M5 | Unknown | United Kingdom | Checked at vn5socks.net
      LIVE ~ 70.166.38.80:24822 | 0.339 | San Diego | CA | Unknown | United States | Checked at vn5socks.net
      LIVE ~ 162.144.118.92:38147 | 0.195 | Unknown | Unknown | Unknown | Unknown | Checked at vn5socks.net
      LIVE ~ 185.108.76.37:9050 | 0.21 | Unknown | Unknown | Unknown | Unknown | Checked at vn5socks.net
      LIVE ~ 169.239.221.90:50802 | 0.341 | Unknown | Unknown | Unknown | Unknown | Checked at vn5socks.net
      LIVE ~ 95.216.55.131:1188 | 0.224 | Unknown | Unknown | Unknown | Ukraine | Checked at vn5socks.net
      LIVE ~ 118.24.16.120:1108 | 0.387 | Chaoyang | 19 | Unknown | China | Checked at vn5socks.net
      LIVE ~ 46.54.247.142:39880 | 0.337 | Nova Gorica | 04 | Unknown | Slovenia | Checked at vn5socks.net
    • tisocks
      SOCKS Proxy List by Tisocks.net
      If you Need Socks5 , Please visit service and add fund via PM , BTC WMZ , WEX . Thanks all!!
      Add fund : https://tisocks.net/addfund
      Check socks5 Online here : https://checksocks5.com
      LIVE | 192.169.201.207:28881 | 0.235 | SOCKS5 | Arizona | 85260 | ip-192-169-201-207.ip.secureserver.net | United States | Checked at https://tisocks.net
      LIVE | 35.193.155.198:9310 | 0.371 | SOCKS5 | Unknow | Unknow | The Calyx Institute | Anonymous Proxy | Checked at https://tisocks.net
      LIVE | 104.197.170.237:9246 | 0.488 | SOCKS5 | Unknow | Unknow | Quintex Alliance Consulting | Anonymous Proxy | Checked at https://tisocks.net
      LIVE | 35.193.51.107:9543 | 0.528 | SOCKS5 | Unknow | Unknow | nyc-exit.privateinternetaccess.com | Anonymous Proxy | Checked at https://tisocks.net
      LIVE | 83.169.247.219:9999 | 0.688 | SOCKS5 | Rostov | 344000 | PJSC MegaFon | Russian Federation | Checked at https://tisocks.net
      LIVE | 35.225.184.210:9834 | 0.559 | SOCKS5 | Unknow | Unknow | Quintex Alliance Consulting | Anonymous Proxy | Checked at https://tisocks.net
      LIVE | 92.52.194.129:9999 | 0.483 | SOCKS5 | Hajdu-Bihar | 4220 | Giganet Internet Szolgaltato Kft | Hungary | Checked at https://tisocks.net
      LIVE | 201.222.55.34:9999 | 0.727 | SOCKS5 | Unknow | Unknow | | Unknow | Checked at https://tisocks.net
      LIVE | 51.254.78.218:30808 | 0.236 | SOCKS5 | California | 95437 | 50-1-90-133.dsl.dynamic.fusionbroadband.com | United States | Checked at https://tisocks.net
      LIVE | 77.245.113.56:9999 | 0.566 | SOCKS5 | Udmurt | 426069 | 113-56.izhnt.ru | Russian Federation | Checked at https://tisocks.net
      LIVE | 54.36.203.240:13676 | 0.234 | SOCKS5 | California | 90018 | rrcs-69-75-160-78.west.biz.rr.com | United States | Checked at https://tisocks.net
      LIVE | 192.169.218.61:17718 | 0.232 | SOCKS5 | Arizona | 85260 | ip-192-169-218-61.ip.secureserver.net | United States | Checked at https://tisocks.net
      LIVE | 104.197.170.237:10020 | 0.7 | SOCKS5 | Unknow | Unknow | spongebob.exit.tor4us.net | Anonymous Proxy | Checked at https://tisocks.net
      LIVE | 178.76.71.141:62913 | 0.564 | SOCKS5 | Unknow | Unknow | | Unknow | Checked at https://tisocks.net
      LIVE | 62.24.99.7:9999 | 0.959 | SOCKS5 | Unknow | Unknow | | Unknow | Checked at https://tisocks.net
       
    • shopsocks5.com
      [Shopsocks5.com] Service Socks5 Cheap
      Payment Instantly Perfectmoney, Bitcoin, Wmtransfer, BTC-E ( Please click Buy Socks )
      Check Socks Online  http://shopsocks5.com/check/





        Live | 178.62.217.39:4443 | Netherlands | Amsterdam | 07 | 1000 | Checked at http://shopsocks5.com Live | 35.225.214.70:10010 | United States | Ann Arbor | MI | 48104 | Checked at http://shopsocks5.com Live | 42.112.20.116:7200 | Vietnam | Hanoi | 44 | Unknown | Checked at http://shopsocks5.com Live | 167.99.17.24:9050 | United States | Fort Worth | TX | 76104 | Checked at http://shopsocks5.com Live | 91.121.67.146:9050 | France | Unknown | Unknown | Unknown | Checked at http://shopsocks5.com Live | 185.19.218.37:21473 | Germany | Unknown | Unknown | Unknown | Checked at http://shopsocks5.com Live | 128.199.72.46:8081 | Singapore | Singapore | 00 | Unknown | Checked at http://shopsocks5.com Live | 62.141.8.227:9999 | Czech Republic | Unknown | Unknown | Unknown | Checked at http://shopsocks5.com Live | 207.180.233.152:50125 | United States | Buffalo | NY | 14221 | Checked at http://shopsocks5.com Live | 64.118.87.51:49864 | United States | Old Bridge | NJ | 08857 | Checked at http://shopsocks5.com Live | 50.63.167.72:43796 | United States | Scottsdale | AZ | 85260 | Checked at http://shopsocks5.com Live | 95.110.194.245:27318 | Italy | Arezzo | 16 | 52100 | Checked at http://shopsocks5.com Live | 107.170.42.147:10414 | United States | New York | NY | 10118 | Checked at http://shopsocks5.com Live | 132.148.130.46:50637 | United States | Minneapolis | MN | 55488 | Checked at http://shopsocks5.com Live | 95.110.207.71:35200 | Italy | Arezzo | 16 | 52100 | Checked at http://shopsocks5.com Live | 37.59.8.29:64043 | France | Unknown | Unknown | Unknown | Checked at http://shopsocks5.com
×