اذهب إلى المحتوى

زهراء الربيع

الأعضاء
  • المساهمات

    10
  • تاريخ الانضمام

  • تاريخ آخر زيارة

كل منشورات العضو زهراء الربيع

  1. بدأت في تخصص الالعاب علي ادراك ووصلت الي مرحلة GUIالمشكلة هي انه يعطيني من وقتها خطأ ولا اجد اي حل وهذا هو الكود 2d using System.Collections; using System.Collections.Generic; using UnityEngine; public class playercontroler : MonoBehaviour { public float speed; public SpriteRenderer sr; public Rigidbody2D rb; public float jump; int health; int score; public Animator anim; public Text healthText; public Text scoreText; // Start is called before the first frame update void Start() { health = 100; healthText.text = "health:" + health + "%"; scoreText.text = "score: " + score ; } // Update is called once per frame void Update() { if (Input.GetAxis("Jump") > 0) rb.velocity = new Vector2(0, jump); anim.SetFloat("Speed", Mathf.Abs(rb.velocity.x)); } private void FixedUpdate() { if (Input.GetAxis("Horizontal") > 0) { //transform.Translate(speed, 0, 0); rb.velocity = new Vector2(speed * Input.GetAxis("Horizontal"), rb.velocity.y); sr.flipX = false; } else if (Input.GetAxis("Horizontal") < 0) { rb.velocity = new Vector2(speed * Input.GetAxis("Horizontal"), rb.velocity.y); sr.flipX = true; } } private void OnTriggerEnter2D(Collider2D collision) { if (collision.CompareTag("health")) { health += 10; healthText.text = "health:" + health + "%"; Destroy(collision.gameObject); } else if (collision.CompareTag("score")) { score += 10; Destroy(collision.gameObject); scoreText.text = "score: " + score; } else if (collision.CompareTag("Enemy")) { if (transform.position.y > collision.transform.position.y) { Destroy(collision.gameObject); } else { health -= 10; healthText.text = "health:" + health + "%"; } } } } وهذه الرسائل Library\PackageCache\com.unity.2d.common@4.1.0\Runtime\InternalBridge\InternalEngineBridge.cs(21,35): error CS1061: 'SpriteRenderer' does not contain a definition for 'IsUsingDeformableBuffer' and no accessible extension method 'IsUsingDeformableBuffer' accepting a first argument of type 'SpriteRenderer' could be found (are you missing a using directive or an assembly reference?) Invalid serialized file header. File: "VirtualArtifacts/Primary/ada555936059fa149bb48537842ee230". UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[]) Unknown error occurred while loading 'Library/Artifacts/f2/f27b79827eb6ce6ac46b0f92687c2a6e'. UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[]) Could not load Packages/com.unity.timeline/Editor/StyleSheets/Extensions/common.uss UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[]) Invalid serialized file header. File: "VirtualArtifacts/Primary/e98085123be873947970c4f10099a39a". UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[]) Unknown error occurred while loading 'Library/Artifacts/35/35c86656bde22d12ad98ab8a3a14d6dc'. UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[]) Could not load Packages/com.unity.timeline/Editor/StyleSheets/Extensions/light.uss UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[]) Assets\script\playercontact.cs(1,27): error CS1003: Syntax error, '(' expected Assets\script\playercontact.cs(1,27): error CS1026: ) expected Assets\script\playercontact.cs(2,1): error CS1529: A using clause must precede all other elements defined in the namespace except extern alias declarations Assets\script\playercontact.cs(3,1): error CS1529: A using clause must precede all other elements defined in the namespace except extern alias declarations All compiler errors have to be fixed before you can enter playmode! UnityEditor.SceneView:ShowCompileErrorNotification () Assets\script\playercontact.cs(15,12): error CS0246: The type or namespace name 'Text' could not be found (are you missing a using directive or an assembly reference?)
  2. انا مبتدئه وبعمل تطبيق حل امتحانات اجابه اسئلة يعني لما يجاوب المستخدم غلط يطلع صوت غلط ولما يجاوب صح يطلع صوت صح انا عارفه اننا بنعمل بif وelse وبنستدعي audio player من ملفات دارت من الموقع وبتستخدمها الحقيقه اني عطلت هنا في حته ححط ايه فين ولو في طريقه تانيه ممكن حد يقول لي
  3. Launching lib\main.dart on LDN L21 in debug mode... lib\main.dart:1 Parameter format not correct - √ Built build\app\outputs\flutter-apk\app-debug.apk. Error: ADB exited with exit code 1 Performing Streamed Install adb: failed to install C:\Users\Attia With Us\ekhtbar\build\app\outputs\flutter-apk\app.apk: Error launching application on LDN L21. Exited (sigterm) كنت شغالة كويس بس سحت التطبيق من الجهاز وجاية أكمل تاني يوم راح طلع لي دا
  4. عندما أقوم بعمل ربط لجهاز مع vsc يعطى لي هذا Launching lib\main.dart on LDN L21 in profile mode... lib\main.dart:1 Parameter format not correct - FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:stripProfileDebugSymbols'. > NDK at C:\Users\Attia With Us\AppData\Local\Android\sdk\ndk-bundle did not have a source.properties file * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 2m 14s Exception: Gradle task assembleProfile failed with exit code 1 Exited (sigterm)
  5. انا اتعلم flutterعندما اقوم بإضافة المتغيير يعطيني خطأ The argument type 'List<dynamic>' can't be assigned to the parameter type 'List<Widget>' كلما حاولت تغيير الList<dynamic>اليList<Widget>لااستطيع وها هو كودى import 'package:flutter/material.dart'; void main() { runApp(const EkhtbarApp()); } class EkhtbarApp extends StatelessWidget { const EkhtbarApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( backgroundColor: Colors.orange[100], appBar: AppBar( // ignore_for_file: prefer_const_constructors backgroundColor: Colors.brown[600], title: Text("اختر الإجابة الصحيحة"), ), body: Padding( padding: const EdgeInsets.all(20.0), child: Esst(), ), ), ); } } class Esst extends StatefulWidget { const Esst({Key? key}) : super(key: key); @override _EsstState createState() => _EsstState(); } class _EsstState extends State<Esst> { List fafa = [ Padding( padding: const EdgeInsets.all(3.0), child: Icon( Icons.thumb_up, color: Colors.lightGreen[400], ), ), Padding( padding: const EdgeInsets.all(3.0), child: Icon( Icons.thumb_down, color: Colors.red[600], ), ), Padding( padding: const EdgeInsets.all(3.0), child: Icon( Icons.thumb_up, color: Colors.lightGreen[400], ), ), Padding( padding: const EdgeInsets.all(3.0), child: Icon( Icons.thumb_down, color: Colors.red[600], ), ), ]; @override Widget build(BuildContext context) { return Column( children: [ ،،هنا هى المشكلة Row(children:fafa, ), Expanded( flex: 5, child: Column( children: [ Image.asset("images/000.jpg"), SizedBox( height: 5.0, ), Text( "الشخصية في الصورة من كرتون المهند", textAlign: TextAlign.center, style: TextStyle(fontSize: 24.0), ), ], ), ), Expanded( child: Row( crossAxisAlignment: CrossAxisAlignment.stretch, children: [ Padding( padding: const EdgeInsets.all(20.0), child: TextButton( onPressed: () { // Pop here with "صح"... }, child: const Text( 'صح', style: TextStyle(color: Colors.white), ), style: ButtonStyle( backgroundColor: MaterialStateProperty.all(Colors.lightGreen[400]), fixedSize: MaterialStateProperty.all(Size.fromWidth(200)), ), ), ), Padding( padding: const EdgeInsets.all(20.0), child: Expanded( child: TextButton( onPressed: () { // Pop here with "خطأ"... }, child: const Text( 'خطأ', style: TextStyle(color: Colors.white), ), style: ButtonStyle( backgroundColor: MaterialStateProperty.all(Colors.red[600]), fixedSize: MaterialStateProperty.all(Size.fromWidth(200)), ), ), ), ), ], ), ), ], ); } }
  6. Building with sound null safety Parameter format not correct - FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeReleaseResources'. > Multiple task action failures occurred: > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > Android resource compilation failed AAPT: C:\Users\Attia With Us\ttabook_app\android\app\src\main\res\mipmap-hdpi\ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature. C:\Users\Attia With Us\ttabook_app\android\app\src\main\res\mipmap-hdpi\ic_launcher.png: error: file failed to compile. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > Android resource compilation failed AAPT: C:\Users\Attia With Us\ttabook_app\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature. C:\Users\Attia With Us\ttabook_app\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png: error: file failed to compile. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > Android resource compilation failed AAPT: C:\Users\Attia With Us\ttabook_app\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature. C:\Users\Attia With Us\ttabook_app\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png: error: file failed to compile. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > Android resource compilation failed AAPT: C:\Users\Attia With Us\ttabook_app\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature. C:\Users\Attia With Us\ttabook_app\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png: error: file failed to compile. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > Android resource compilation failed AAPT: C:\Users\Attia With Us\ttabook_app\android\app\src\main\res\mipmap-mdpi\ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature. C:\Users\Attia With Us\ttabook_app\android\app\src\main\res\mipmap-mdpi\ic_launcher.png: error: file failed to compile. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 2m 20s Running Gradle task 'assembleRelease'... 143.4s Gradle task assembleRelease failedwith exit code 1 دا اللي ظهر
  7. failure: build failed with an exception. * where: build file 'c:\users\attia with us\ttabook_app\android\app\build.gradle' line: 77 * what went wrong: could not compile build file 'c:\users\attia with us\ttabook_app\android\app\build.gradle'. > startup failed: build file 'c:\users\attia with us\ttabook_app\android\app\build.gradle': 77: expecting '}', found '' @ line 77, column 1. 1 error * try: run with --stacktrace option to get the stack trace. run with --info or --debug option to get more log output. run with --scan to get full insights. * get more help at https://help.gradle.org build failed in 26s running gradle task 'assemblerelease'... 29.0s gradle task assemblerelease failed with exit code 1 ما الحل أريد أستخراج ملف apk لرفعه علي جوجل بلاي
  8. اريد رفعه علي جوجل بلاي واب ستور في هذه الحاله ماهي الدورات المتاحه التي تجعلني اصل لهدفي كل ما اعرفه عن يونايتي الالعاب القتاليه وسباق السيارات والمركبات الفضاء يعني لا اعرف كيفيهعمل لعبه تبديل ملابس ومكياج وشعر
  9. اريد تعلم برمجه العاب الاطفال كالعاب التلبيس والمكياج والشعر وغيرها بدأت في التعلم علي يونايتي لكن لم اجد ما اريده كانت بعد انتهاء الدوره استطبيع عمل العاب قتال او مسابقات قفز وغيرها انا ازيد ان تدلوني علي الطريق الصحيخ لتعلم كيفبه برمجه لعبه مثل تلبيس باربي
×
×
  • أضف...