Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Game Development › XNA Development › [HELP]

[HELP]

Posts 1–7 of 7 · Page 1 of 1
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
[HELP]
Well, I want to make something that when a sprite touch an other, the first one will goes back to Vector2.Zero,,,,,,I used:

Code:
if(vec == eVec || vec.X == eVec.X || vec.Y == eVec.Y) 
{
         vec = Vector2.Zero;
         eVec = new Vector2(700, 100);
}
cVec -- Enemy Vector
vec -- Player Vector
#1 · 15y ago
'Bruno
'Bruno
Not quite sure if these IFs will work like you want... but ok..

Explain better the result you want and what are you trying to do.
And whats actually your problem...?
#2 · 15y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
Quote Originally Posted by Brinuz View Post
Not quite sure if these IFs will work like you want... but ok..

Explain better the result you want and what are you trying to do.
And whats actually your problem...?
well, when I move a sprite around, and it touches an other sprite I want the first one to get back on the start position... It works, but I need to put the sprites on the same location....

For ie:
At your game when you crash 2 planes (or whatever) your plane gets destroyed....
#3 · 15y ago
'Bruno
'Bruno
Well i stop drawing the plane.

You mean you want to reset their position? If thats the case.. I dont see the problem
#4 · 15y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
Quote Originally Posted by Brinuz View Post
Well i stop drawing the plane.

You mean you want to reset their position? If thats the case.. I dont see the problem
huh? well, it resets the position only if the 2 sprites are in the exact position, but I want to reset it when they touches each others....
#5 · 15y ago
'Bruno
'Bruno
ha.. lol.. check my code.. you will find examples there mate
#6 · 15y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
Quote Originally Posted by Brinuz View Post
ha.. lol.. check my code.. you will find examples there mate
xD it's gigant xD, Will take me a lot of time xD
#7 · 15y ago
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Tags for this Thread

None